Development

Changeset 3490

You must first sign up to be able to contribute.

Changeset 3490

Show
Ignore:
Timestamp:
02/18/07 09:49:28 (2 years ago)
Author:
fabien
Message:

fixed sfProcessCache doesn't work after clearing cache (closes #1457 - patch from vanchuck)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/lib/config/sfConfigCache.class.php

    r3203 r3490  
    131131  public function checkConfig($configPath, $optional = false) 
    132132  { 
     133    static $process_cache_cleared = false; 
     134 
    133135    if (sfConfig::get('sf_debug') && sfConfig::get('sf_logging_enabled')) 
    134136    { 
     
    187189 
    188190      // clear process cache 
    189       if ('config/config_handlers.yml' != $configPath
     191      if ('config/config_handlers.yml' != $configPath && sfConfig::has('sf_use_process_cache') && !$process_cache_cleared
    190192      { 
    191193        sfProcessCache::clear(); 
     194        $process_cache_cleared = true; 
    192195      } 
    193196    }