Ejemplo n.º 1
0
 /**
  * Truncate the product cache table if a product is changed
  * Second parameter and return value is to use the method as save_callback
  *
  * @param mixed $varValue
  *
  * @return mixed
  */
 public static function truncateProductCache($varValue = null)
 {
     ProductCache::purge();
     return $varValue;
 }
Ejemplo n.º 2
0
 /**
  * Truncate the product cache table if a product is changed
  * Second parameter and return value is to use the method as save_callback
  * @param mixed
  * @return mixed
  */
 public static function truncateProductCache($varValue = null)
 {
     \Isotope\Model\ProductCache::purge();
     return $varValue;
 }
Ejemplo n.º 3
0
 private function purgeCaches()
 {
     ProductCache::purge();
     RequestCache::purge();
 }
Ejemplo n.º 4
0
 private function purgeCaches()
 {
     \Isotope\Model\ProductCache::purge();
     \Isotope\Model\RequestCache::purge();
 }