/**
  * @author      : HungNT
  * call job clear cache keybox fe
  * @todo        : clearCacheKeybox
  * @param type $arrParams
  */
 public function clearCacheKeybox($params)
 {
     // Delete cache
     $keyCache = Thethao_Global::makeCacheKey($params['key_id']);
     if (!$keyCache) {
         $keyCache = $params['key_id'];
     }
     Thethao_Global::deleteMemcache(array($keyCache));
     // Get player model
     $model = new Thethao_Model_Block();
     $arrReturn = $model->getKeyBox($params);
     //init news instance
     $caching = Thethao_Model_Caching::getInstance();
     $caching->clearCacheFile();
     //return
     return $arrReturn;
 }
Example #2
0
 /**
  * function clear cache file
  */
 static function clearApcFile()
 {
     //init news instance
     $caching = Thethao_Model_Caching::getInstance();
     $caching->clearCacheFile();
 }