Kiwwito

Code Snippets and More

For application and environment clear cache:

/**
 * @param string $app
 * @param string $env
 */
function clear_cache ($app, $env) {
  $cacheDir = sfConfig::get('sf_cache_dir').'/'. $app.'/'.$env.'/';
  $cache = new sfFileCache(array('cache_dir' => $cacheDir));
  $cache->clean();
}

Recent comments

© 2014 Copyright by Keyvan Akbary