Index: kernel/classes/ezcache.php
===================================================================
--- kernel/classes/ezcache.php	(revision 22319)
+++ kernel/classes/ezcache.php	(working copy)
@@ -63,6 +63,7 @@
         if ( !isset( $cacheList ) )
         {
             $ini = eZINI::instance();
+            $textToImageIni = eZINI::instance( 'texttoimage.ini' );
             $cacheList = array( array( 'name' => ezi18n( 'kernel/cache', 'Content view cache' ),
                                        'id' => 'content',
                                        'tag' => array( 'content' ),
@@ -135,6 +136,13 @@
                                        'enabled' => $ini->variable( 'TemplateSettings', 'TemplateCache' ) == 'enabled',
                                        'path' => 'template-block',
                                        'function' => array( 'eZCache', 'clearTemplateBlockCache' ) ),
+                                array( 'name' => ezi18n( 'kernel/cache', 'Text to image cache' ),
+                                       'id' => 'texttoimage',
+                                       'tag' => array( 'template' ),
+                                       'enabled' => $textToImageIni->variable( 'ImageSettings', 'UseCache' ) == 'enabled',
+                                       'path' => $textToImageIni->variable( 'PathSettings', 'CacheDir' ),
+                                       'function' => array( 'eZCache', 'clearTextToImageCache' ),
+                                       'purge-function' => array( 'eZCache', 'purgeTextToImageCache' ) ),
                                 array( 'name' => ezi18n( 'kernel/cache', 'Template override cache' ),
                                        'id' => 'template-override',
                                        'tag' => array( 'template' ),
@@ -536,10 +544,31 @@
      \static
      Clear global ini cache
     */
-    static function clearGlobalINICache()
+    static function clearGlobalINICache( $cacheItem )
     {
         eZDir::recursiveDelete( 'var/cache/ini' );
     }
+
+    /*!
+     \static
+     Clear texttoimage cache
+    */
+    static function clearTextToImageCache( $cacheItem )
+    {
+        $fileHandler = eZClusterFileHandler::instance( $cacheItem['path'] );
+        $fileHandler->delete();
+    }
+
+    /*!
+     \static
+     Purge texttoimage cache
+    */
+    static function purgeTextToImageCache( $cacheItem )
+    {
+        $fileHandler = eZClusterFileHandler::instance( $cacheItem['path'] );
+        $fileHandler->purge();
+    }
+
 }
 
 /*!
