I would like to clear my frontend application\'s cache from an action in my backend application.
How can I achieve this?
This works for me. It removes all cached files from the given directory:
$cache_dir = sfConfig::get('sf_cache_dir').'/'.$app.'/'.$env.'/'; $cache = new sfFileCache(array('cache_dir' => $cache_dir)); $cache->clean();