--- /tmp/ext_localconf.php	2006-09-27 14:00:00.714972092 +0000
+++ ext_localconf.php	2006-09-27 21:29:53.333905342 +0000
@@ -3,4 +3,9 @@
 
 #t3lib_extMgm::addPItoST43($_EXTKEY,"pi1/class.tx_SourceOpt_pi1.php","_pi1","",1);
 $TYPO3_CONF_VARS["FE"]["XCLASS"]["tslib/class.tslib_fe.php"]=t3lib_extMgm::extPath($_EXTKEY)."class.ux_tslib_fe.php";
-?>
\ No newline at end of file
+
+require_once(t3lib_extMgm::extPath('fl_staticfilecache').'class.clearCache.php');
+$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearPageCacheEval'][]='EXT:fl_staticfilecache/class.clearCache.php:user_fl_staticfilecache_cacheProc->clearStaticCache';
+#$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc'][]='EXT:fl_staticfilecache/class.clearCache.php:fl_staticfilecache_cacheProc->clearStaticCache';
+
+?>
--- /dev/null	2006-08-15 21:48:57.673747092 +0000
+++ class.clearCache.php	2006-09-27 21:38:43.935065842 +0000
@@ -0,0 +1,16 @@
+<?php
+ class user_fl_staticfilecache_cacheProc {
+
+	 function clearStaticCache($params, $ref)	{
+     # Delete the Cache File From spezial Page Uid
+	   $uid = $params["pageIdArray"][0];
+     $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('pagefile', 'tx_flstaticfilecache_files', 'pageid='.$uid.'');
+     while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
+       if(is_file(PATH_site.'uploads/tx_flstaticfilecache/'.$row['pagefile']))
+         unlink(PATH_site.'uploads/tx_flstaticfilecache/'.$row['pagefile']);
+     } # while
+     $GLOBALS['TYPO3_DB']->exec_UPDATEquery('tx_flstaticfilecache_files','pageid='.$uid.'',array('deleted' => '1'));
+   } # function
+ }
+
+?>

