Issues

ZF-2246: Tagging of cache records broken in ZendPlatform Backend

Issue Type: Bug Created: 2007-11-29T08:35:32.000+0000 Last Updated: 2008-03-21T16:25:49.000+0000 Status: Resolved Fix version(s): - 1.5.0 (17/Mar/08)

Reporter: Christian Gräfe (cgraefe) Assignee: Fabien MARTY (fab) Tags: - Zend_Cache

Related issues: Attachments:

Description

When using ZendPlatform as the backend for Zend_Cache, the tagging of records is not working as expected. Each unique tag will reference the first record that was tagged with it, only. This seems due to the fact that output_cache_put() does not overwrite an existing record with the same key.

Preceding the call to output_cache_put() with a call to output_cache_remove_key() seems to solve the issue:

<pre class="literal">
--- ../../live/inc/Zend/Cache/Backend/ZendPlatform.php  Thu Jul 19 00:00:24 2007
+++ Zend/Cache/Backend/ZendPlatform.php Thu Nov 29 15:30:51 2007
@@ -148,6 +148,7 @@
                 $old_tags = array();
             }
             $old_tags[$id] = $id;
+            output_cache_remove_key($tagid);
             $result2 = output_cache_put($tagid, $old_tags);
         }

Comments

Posted by Fabien MARTY (fab) on 2008-01-05T04:36:50.000+0000

fixed in SVN (thanks for the patch)

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts