Exemple #1
0
 /**
  * Is the cache for this item still valid.
  *
  * @param string $name The name of the cached block.
  * @return bool
  */
 public function isCached($name)
 {
     // never cached in debug
     if (SPOON_DEBUG) {
         return false;
     } else {
         return parent::isCached($name);
     }
 }
Exemple #2
0
 /**
  * Is the cache for this item still valid.
  *
  * @param string $name The name of the cached block.
  * @return bool
  */
 public function isCached($name)
 {
     // never cached in debug
     if (Model::getContainer()->getParameter('kernel.debug')) {
         return false;
     } else {
         // let parent do the actual check
         return parent::isCached($name);
     }
 }