/** * Saves a processed upgrade to a dataset. * * @param string $upgrade Filename of the processed upgrade * (not the path, just the file) * @return bool */ protected function setProcessedUpgrade($upgrade) { $processed_upgrades = $this->getProcessedUpgrades(); $processed_upgrades[] = $upgrade; $processed_upgrades = array_unique($processed_upgrades); return $this->datalist->set('processed_upgrades', serialize($processed_upgrades)); }
/** * Deletes all cached views in the simplecache and sets the lastcache and * lastupdate time to 0 for every valid viewtype. * * @return bool */ function invalidate() { _elgg_rmdir($this->getPath(), true); $time = time(); $this->datalist->set("simplecache_lastupdate", $time); $this->config->set('lastcache', $time); return true; }