public function clearAll() { $success = true; dmFileCache::clearAll(); if (count($survivors = glob(sfConfig::get('sf_cache_dir') . '/*'))) { $success = false; $message = 'Can not be removed from cache : ' . implode(', ', $survivors); $this->dispatcher->notify(new sfEvent($this, 'application.log', array($message, 'priority' => sfLogger::ERR))); } if (dmAPCCache::isEnabled()) { if (!dmAPCCache::clearAll()) { $success = false; $message = 'Can not clear APC cache'; $this->dispatcher->notify(new sfEvent($this, 'application.log', array($message, 'priority' => sfLogger::ERR))); } } $this->dispatcher->notify(new sfEvent($this, 'dm.cache.clear', array('success' => $success))); $this->dispatcher->notify(new sfEvent($this, 'task.cache.clear')); return $success; }