Development

#1457: sfConfigCache.diff

You must first sign up to be able to contribute.

Ticket #1457: sfConfigCache.diff

File sfConfigCache.diff, 0.9 kB (added by vanchuck, 2 years ago)
  • lib/config/sfConfigCache.class.php

    old new  
    130130   */ 
    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    { 
    135137      $timer = sfTimerManager::getTimer('Configuration'); 
     
    186188      $this->callHandler($configPath, $files, $cache); 
    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    } 
    194197