/** * Run this task * * @return @e void */ public function runTask() { /* Run it */ $itemsRemoved = IPSContentCache::prune(); $log = $itemsRemoved === FALSE ? $this->lang->words['errorcleaningcontentcache'] : sprintf($this->lang->words['contentcache_cleaned'], $itemsRemoved); $this->class->appendTaskLog($this->task, $log); $this->class->unlockTask($this->task); }
/** * View an individual cache store contents * * @return @e void [Outputs to screen] */ protected function _contentCache() { $type = $this->request['type']; $method = $this->request['method']; /* What are we doing? */ if ($method == 'all') { $removed = IPSContentCache::truncate($type); } else { $removed = IPSContentCache::prune($type); } $this->registry->output->global_message = sprintf($this->lang->words['cc_processed'], $removed); $this->cacheOverview(); }
/** * Run this task * * @access public * @return void */ public function runTask() { /* Run it */ $itemsRemoved = IPSContentCache::prune(); $this->class->appendTaskLog($this->task, "Cleaned up content cache - " . $itemsRemoved . " items removed"); $this->class->unlockTask($this->task); }