/**
  * @since 2.2
  *
  * @param DIWikiPage $subject
  */
 public function resetCacheFor(DIWikiPage $subject)
 {
     $hash = $this->cachePrefix . $subject->getHash();
     foreach (array($hash, $hash . self::AUX_MARKER) as $key) {
         $this->cache->delete($key);
     }
 }
 /**
  * @since 2.3
  */
 public function deleteCache()
 {
     list($id, $optionsKey) = $this->getCacheKey($this->listLookup->getHash());
     $data = unserialize($this->cache->fetch($id));
     if ($data && $data !== array()) {
         foreach ($data as $key => $value) {
             $this->cache->delete($key);
         }
     }
     $this->cache->delete($id);
 }
Example #3
0
 /**
  * @since 1.0
  *
  * @param string $id
  */
 public function delete($id)
 {
     $container = $this->read($id);
     foreach ($container->getLinkedList() as $linkedId) {
         $key = $this->getKey((string) $linkedId);
         $this->cache->delete($key);
         $this->internalCache->delete($key);
     }
     $this->cache->delete($this->getKey($id));
     $this->internalCache->delete($this->getKey($id));
 }
 /**
  * @since 2.5
  *
  * @param string $slot
  */
 public function delete($slot)
 {
     $this->cache->delete($slot);
 }
Example #5
0
 /**
  * @since 2.3
  */
 public function deleteCache()
 {
     list($id, $optionsKey) = $this->getCacheKey($this->listLookup->getLookupIdentifier());
     $this->cache->delete($id);
 }
Example #6
0
 /**
  * @since 1.0
  *
  * @param string $id
  */
 public function delete($id)
 {
     $this->cache->delete($this->getKey($id));
     $this->internalCache->delete($this->getKey($id));
 }
 /**
  * @since 2.1
  *
  * @param string $title
  * @param integer $namespace
  */
 public function deleteRedirectEntry($title, $namespace)
 {
     $this->delete($title, $namespace);
     $hash = HashBuilder::createHashIdFromSegments($title, $namespace);
     $this->cache->delete($hash);
 }
 /**
  * @since 2.1
  *
  * @param string $id
  */
 public function deleteFromCache($id)
 {
     $this->cache->delete($id);
 }