Ejemplo n.º 1
0
 private function postUpdateWebsite($idSite)
 {
     Site::clearCache();
     Cache::regenerateCacheWebsiteAttributes($idSite);
     SiteUrls::clearSitesCache();
 }
Ejemplo n.º 2
0
 public function test_clearSitesCache_ShouldActuallyDeleteACache()
 {
     $this->addSite('http://www.example.com');
     $this->siteUrls->getAllCachedSiteUrls();
     // make sure we have a cached result
     $this->assertValueInCache(array(1 => array('http://www.example.com')));
     SiteUrls::clearSitesCache();
     // make sure is empty now
     $this->assertValueInCache(false);
 }