예제 #1
0
 /**
  * If you use the CacheLiteFunction decorator, you may want to invalidate
  * the cache after a change in the data base.
  *
  * @return void
  */
 function cleanCache()
 {
     static $cacheLiteFunction = null;
     if (is_null($cacheLiteFunction)) {
         include_once 'Cache/Lite/Function.php';
         $cacheLiteFunction = new Cache_Lite_Function($this->options['cacheOptions']);
     }
     $cacheLiteFunction->clean($this->options['cacheOptions']['defaultGroup']);
 }
예제 #2
0
 /**
  * If you use the CacheLiteFunction decorator, you may want to invalidate
  * the cache after a change in the data base.
  */
 function cleanCache()
 {
     static $cacheLiteFunction = null;
     if (is_null($cacheLiteFunction)) {
         require_once 'Cache/Lite/Function.php';
         $cacheLiteFunction = new Cache_Lite_Function($this->options['cacheOptions']);
     }
     $cacheLiteFunction->clean();
 }