/** * Clears all cache * @return void */ public function clearCache() { $this->container->getSiteInstance()->getVariables()->removeKey('facebook_number_of_likes'); $status = $this->getStatus(); while ($status != null) { if ($status->update()) { $status->clearCache(); } $status = $status->getNextStatus(); } $tmpFolder = $this->container->getTmpFolderInstance(); if ($tmpFolder == null) { return; } $f = new FileImpl($tmpFolder->getAbsolutePath() . $this->id_list_cache_path); $f->delete(); }
/** * Clears cache * @return void */ public function clearCache() { if (($t = $this->container->getTmpFolderInstance()) != null) { $f = new FileImpl("{$t->getAbsolutePath()}/FacebookStatusImpl/{$this->id}"); $f->delete(); } }