When using fragment cache type, symfony adds a 'fragment_' prefix on the generated file.
This prefix is not used when calling the 'remove' function and we can't add it globally because the remove is the same function for all types of cache.
The following patch removes the 'fragment_' prefix on generated files :
Index: sfViewCacheManager.class.php
===================================================================
--- sfViewCacheManager.class.php (revision 127)
+++ sfViewCacheManager.class.php (working copy)
@@ -337,8 +337,6 @@
*/
public function start($suffix, $lifeTime, $clientLifeTime = null, $vary = array())
{
- $suffix = 'fragment_'.$suffix;
-
$internalUri = sfRouting::getInstance()->getCurrentInternalUri();
if (!$clientLifeTime)
@@ -370,8 +368,6 @@
*/
public function stop($suffix)
{
- $suffix = 'fragment_'.$suffix;
-
$data = ob_get_clean();
// save content to cache