Exemplo n.º 1
0
 protected function performAction(Title $title, DIConcept $concept)
 {
     $this->reportMessage("({$this->lines}) ");
     if ($this->action === 'create') {
         $this->reportMessage('Creating cache for "' . $title->getPrefixedText() . "\" ...\n");
         return $this->store->refreshConceptCache($title);
     }
     if ($this->action === 'delete') {
         $this->reportMessage('Deleting cache for "' . $title->getPrefixedText() . "\" ...\n");
         return $this->store->deleteConceptCache($title);
     }
     $this->reportMessage('Status for "' . $title->getPrefixedText() . '": ');
     if ($concept->getCacheStatus() === 'full') {
         return $this->reportMessage('Cache created at ' . $this->getCacheDateInfo($concept->getCacheDate()) . "{$concept->getCacheCount()} elements in cache\n");
     }
     $this->reportMessage("Not cached.\n");
 }
Exemplo n.º 2
0
 /**
  * @see Store::refreshConceptCache()
  * @since 1.8
  */
 public function refreshConceptCache(Title $concept)
 {
     return $this->baseStore->refreshConceptCache($concept);
 }