Development

#622 (fix for problem with fragments cache)

You must first sign up to be able to contribute.

Ticket #622 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

fix for problem with fragments cache

Reported by: marc.hugon@symfony-project.com Assigned to:
Priority: minor Milestone: 0.6.3
Component: Version: 0.7.X
Keywords: cache Cc:
Qualification:

Description

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

Change History

06/13/06 14:39:50 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.

in r1439