예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function delete($id)
 {
     try {
         SystemCache::remove($this->transformCacheKey($id));
         return true;
     } catch (\Exception $e) {
         return false;
     }
 }
예제 #2
0
 /**
  * deletes element from mockup cache
  *
  * @param $objectId
  */
 protected function deleteFromMockupCache($objectId)
 {
     $key = $this->getMockupCachePrefix() . "_" . $this->name . "_" . $objectId;
     \Pimcore\Model\Cache::remove($key);
 }