Difference between revisions of "Graphical Automator"

From Contao Community Documentation

(Einleitung)
(Beschreibung)
Line 43: Line 43:
 
<br />
 
<br />
  
=Beschreibung=
+
=Description=
Das Modul Graphical Automator klinkt sich dazu in den CRON von Contao ein, genauer in den "daily" Aufruf per Hook. Das Modul sucht dabei alle Dateien die den Präfix "graphtext-" haben.<br />
+
The module Graphical Automator plugs into the CRON of Contao, more precisely in the "daily" call by Hook. This module searches all the files that have the prefix "graphtext-".<br />
 
<br />
 
<br />
Damit nicht genau zum Zeitpunkt der Lieferung neu generierter Grafiken diese gleich wieder gelöscht werden und somit ein Broken Picture im Browser erzeugt, wird der Zeitstempel der Dateien geprüft und nur solche gelöscht, die älter als 10 Minuten sind. Da zum selben Zeitpunkt die Seiten im Cache auch gelöscht wurden, genauer gesagt kurz vorher, braucht hier auf die Grafik Dateien von Seiten im Cache normalerweise keine Rücksicht genommen werden.<br />
+
Newly-generated graphics may not be deleted right at the time of delivery. (Broken Picture in the browser) Therefore, the timestamp of the files reviewed and cleared only those who are older than 10 minutes.<br />
 
<br />
 
<br />
Im Backend unter [[System-Log]] taucht dann eine solche Meldung auf:<br />
+
In the back end [[System-Log]], the action is logged:<br />
 
  [08.04.2010 00:47] Purged 35 Graphtext images in thumbnail directory.
 
  [08.04.2010 00:47] Purged 35 Graphtext images in thumbnail directory.
 
<br />
 
<br />
 +
 
=Feinheiten=
 
=Feinheiten=
 
Die Mindest-Haltezeit kann mittels Eintrag in der localconfig.php geändert werden.<br />
 
Die Mindest-Haltezeit kann mittels Eintrag in der localconfig.php geändert werden.<br />

Revision as of 12:03, 20 September 2010

I'm not a native English speaker. Please correct my mistakes.


An extension, to delete old grapfic files, generated from module graphical text.


Extension-Overview
Name of the developer Glen Langer (BugBuster)
Developer Website http://www.contao.glen-langer.de
Version of the extension 1.0.0
Compatibility with Contao Version from 2.9
Compatibility with TYPOlight Version 2.8.0 - 2.8.4
Link to Extension Repository http://www.contao.org/extension-list/view/graphicalautomator.en.html
Donate the developer Cappuccino
Link to Tracker http://dev.typolight-forge.org/projects/graphicalautomator/issues


Note.png Note: Translation follows

Forum

Questions about the Visitors module will be answered in forum: Forum
Errors and requests can be reported in the Issue Tracker.


Installation

The installation of the module occurs about the extension Repository in back end of Contao.
A manual installation is possible. Download the ZIP file from Extension Repository, unzip and transfer it.
A directory should have been created "/system/modules/graphicalautomator".
Then call /contao/install.php - Perform Update Database.
( /typolight/install.php in older TYPOlight installations )

The Graphical Automator module is only useful when using the module "GraphicalText".

Introduction

The module Graphical Text generated graphic files that are stored in /system/html. Normally, e.g. in navigation, do not change the file name. Not so with a counter (e.g. visitor counter), when this can be graphically show will be produced continuously new graphics files. However, the old image files are not deleted again.

The Contao CRON clears once a day the /system/tmp directory, but not the /system/html directory. This is a good thing! No one wants that every day all the preview images and converted images must be recalculated.

The old pictures of the visitor counter (to stay with the example) but can safely be deleted.
Just that this module was written.

Description

The module Graphical Automator plugs into the CRON of Contao, more precisely in the "daily" call by Hook. This module searches all the files that have the prefix "graphtext-".

Newly-generated graphics may not be deleted right at the time of delivery. (Broken Picture in the browser) Therefore, the timestamp of the files reviewed and cleared only those who are older than 10 minutes.

In the back end System-Log, the action is logged:

[08.04.2010 00:47] Purged 35 Graphtext images in thumbnail directory.


Feinheiten

Die Mindest-Haltezeit kann mittels Eintrag in der localconfig.php geändert werden.
Beispiel für 24 Stunden:

$GLOBALS['TL_CONFIG']['purgeHtmlFolderGToffset'] = 86400;

Weitere Beispiele sind in der mitgelieferten config.php enthalten.



Views
Personal tools

Contao Community Documentation

In other languages
Navigation
Discover
Understand
Enhance
Miscellaneous
Tools