Difference between revisions of "Graphical Automator"

From Contao Community Documentation

m (Installation)
(Einleitung)
Line 34: Line 34:
 
The Graphical Automator module is only useful when using the module "[[GraphicalText|GraphicalText]]".<br />
 
The Graphical Automator module is only useful when using the module "[[GraphicalText|GraphicalText]]".<br />
  
=Einleitung=
+
=Introduction=
Das Modul [[GraphicalText|Graphical Text]] generiert Grafik-Dateien die im Verzeichnis /system/html abgelegt werden. Normalerweise, z.B. bei der Navigation, ändern sich die Namen nicht oder nur sehr selten. Hat man nun aber einen Zähler, z.B. Besucherzähler, und lässt den sich grafisch ausgeben, werden ständig neue Grafikdateien erzeugt, jedoch werden die alten nicht wieder gelöscht.<br />
+
The module [[GraphicalText|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.<br />
 
<br />
 
<br />
Der CRON von Contao löscht einmal pro Tag das /system/tmp Verzeichnis, nicht jedoch das /system/html Verzeichnis. Das ist auch gut so! Niemand will das täglich alle Vorschaubilder und umgerechnete Bilder neu berechnet werden müssen.<br />
+
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.<br />
 
<br />
 
<br />
Die alten Bilder des Besucherzählers, um beim Beispiel zu bleiben, können jedoch ruhigen Gewissens gelöscht werden.<br />
+
The old pictures of the visitor counter (to stay with the example) but can safely be deleted.<br />
Genau dazu dient dieses Modul.<br />
+
Just that this module was written.<br />
 
<br />
 
<br />
 +
 
=Beschreibung=
 
=Beschreibung=
 
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 />
 
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 />

Revision as of 11:59, 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.

Beschreibung

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.

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.

Im Backend unter System-Log taucht dann eine solche Meldung auf:

[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