diff InputParser.inc @ 68:4dfa3f6a2dc1

Modify CacheTimeCheck to have a common parent, and two different implementations for script caches and file caches. Support for linkedcaches.
author Tom Fredrik "BFG" Klaussen <bfg@blenning.no>
date Thu, 11 Oct 2012 23:16:53 +0200
parents 74f7b64bdb78
children dd4ddedca4c5
line wrap: on
line diff
--- a/InputParser.inc	Thu Oct 11 22:30:07 2012 +0200
+++ b/InputParser.inc	Thu Oct 11 23:16:53 2012 +0200
@@ -17,8 +17,8 @@
    */
   function __construct($name, $masterCache) {
     $this->master = new DOMDocument();
-    $cache = $masterCache;
-    $cache->cache_time($name);
+    $cache = new CacheTimeCheck($name);
+    $cache->addParent($masterCache);
     $this->master->load($name);
 
     $this->options = new Options($this->master);
@@ -63,11 +63,11 @@
    */
   function genPage()
   {
+    //print_r($this->options->getCache()->cacheSet(1));
+    //exit;
     if (CACHING && $this->options->getCacheable())
       $this->options->getCache()->CheckHttpModified();
-
     print $this->master->saveXml($this->master);
-    //print_r($cache->cacheSet(1));
   }
 
   /**