I need to clear the cache only for pages with updated data.
I have not found an opportunity of use tags in current version
Zend_Cache_Frontend_Page.
Therefore I have written this small patch.


--- D:/httpd/library/Zend/Cache/Frontend/Page.php.ori   Mon Jul 23 23:21:01
2007
+++ D:/httpd/library/Zend/Cache/Frontend/Page.php       Wed Jul 25 21:56:55 2007
@@ -79,6 +79,8 @@
             'make_id_with_session_variables' => true,
             'make_id_with_files_variables' => true,
             'make_id_with_cookie_variables' => true,
+            'tags' => array(),
+            'lifetime' => false,
             'cache' => true
         ),
         'regexps' => array()
@@ -238,7 +240,7 @@
      */
     public function _flush($data)
     {
-        $this->save($data);
+        $this->save($data, null, $this->_activeOptions['tags'],
$this->_activeOptions['lifetime']);
         return $data;
     }
     
-- 
View this message in context: 
http://www.nabble.com/Zend_Cache_Frontend_Page.php-tags-and-lifetime-support-patch-tf4145302s16154.html#a11790983
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to