Skip to content
This repository
Browse code

We do need to set the $cache->hash variable

  • Loading branch information...
commit ab7e08101aacd07b2c9f70bda2c451840b95bf08 1 parent ac02d5b
Anthony Kolber authored March 15, 2012

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. 3  app/cache.inc.php
3  app/cache.inc.php
@@ -2,6 +2,7 @@
2 2
 
3 3
 Class Cache {
4 4
 
  5
+  var $hash;
5 6
   var $path_hash;
6 7
   var $cachefile;
7 8
   var $cache_prefix = 'c-';
@@ -15,6 +16,8 @@ function __construct($file_path, $template_file) {
15 16
     $content_hash = $this->generate_hash($htaccess.$file_cache);
16 17
     # combine the two hashes to create a cachefile name
17 18
     $this->cachefile = './app/_cache/pages/'.$this->cache_prefix.$this->path_hash.'-'.$content_hash;
  19
+    # store the hash
  20
+    $this->hash = $this->cache_prefix.$this->path_hash.'-'.$content_hash;
18 21
   }
19 22
 
20 23
   function generate_hash($str) {

0 notes on commit ab7e081

Please sign in to comment.
Something went wrong with that request. Please try again.