Ticket #1457: sfConfigCache.diff
| File sfConfigCache.diff, 0.9 kB (added by vanchuck, 2 years ago) |
|---|
-
lib/config/sfConfigCache.class.php
old new 130 130 */ 131 131 public function checkConfig($configPath, $optional = false) 132 132 { 133 static $process_cache_cleared = false; 134 133 135 if (sfConfig::get('sf_debug') && sfConfig::get('sf_logging_enabled')) 134 136 { 135 137 $timer = sfTimerManager::getTimer('Configuration'); … … 186 188 $this->callHandler($configPath, $files, $cache); 187 189 188 190 // 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) 190 192 { 191 193 sfProcessCache::clear(); 194 $process_cache_cleared = true; 192 195 } 193 196 } 194 197