[pLog-svn] r1699 - plog/branches/plog-1.1-ben/class/cache

ork at devel.plogworld.net ork at devel.plogworld.net
Mon Apr 4 17:16:25 GMT 2005


Author: ork
Date: 2005-04-04 17:16:25 +0000 (Mon, 04 Apr 2005)
New Revision: 1699

Modified:
   plog/branches/plog-1.1-ben/class/cache/cache.class.php
   plog/branches/plog-1.1-ben/class/cache/cachemanager.class.php
Log:
need to avoid a recursion here.. :( will look into this later on


Modified: plog/branches/plog-1.1-ben/class/cache/cache.class.php
===================================================================
--- plog/branches/plog-1.1-ben/class/cache/cache.class.php	2005-04-04 17:09:17 UTC (rev 1698)
+++ plog/branches/plog-1.1-ben/class/cache/cache.class.php	2005-04-04 17:16:25 UTC (rev 1699)
@@ -50,5 +50,10 @@
         {
             return $this->cache->clean();
         }
+
+        function setCacheDir( $temp_folder )
+        {
+            $this->cache->cacheDir = $temp_folder;
+        }
     }
 ?>

Modified: plog/branches/plog-1.1-ben/class/cache/cachemanager.class.php
===================================================================
--- plog/branches/plog-1.1-ben/class/cache/cachemanager.class.php	2005-04-04 17:09:17 UTC (rev 1698)
+++ plog/branches/plog-1.1-ben/class/cache/cachemanager.class.php	2005-04-04 17:16:25 UTC (rev 1699)
@@ -16,15 +16,15 @@
     {
         var $cache;
 
-
         function CacheManager()
         {
             $this->Object();
+
         }
 
         function clearCache()
         {
-            $cache = CacheManager::getInstance();
+            $cache =& CacheManager::getInstance();
             $cache->_clearCache();
         }
 
@@ -37,11 +37,13 @@
                 require_once( PLOG_CLASS_PATH . "class/cache/cache.class.php" );
                 require_once( PLOG_CLASS_PATH . "class/config/config.class.php" );
 
-                $temp_dir = Config::getTmpFolder() ;
+                // damn .. produces a recursion.. need to fix that later on :)
+                // $config     =& Config::getConfig();
+                // $temp_folder = $config->getUncachedValue( 'temp_folder' );
 
                 // define defaults
                 $cacheParameter = array(
-                    'cacheDir' => $temp_dir;
+                    'cacheDir' => "./tmp/",
                     'caching'  => true,
                     'fileLocking' => true,
                     'writeControl' => true,




More information about the pLog-svn mailing list