コード例 #1
0
ファイル: cache.php プロジェクト: bgao-ca/moodle-local_mr
 /**
  * Give (if possible) an extra lifetime to the given cache id
  *
  * @param string $id Cache ID
  * @param int $extraLifetime The time to add to the life
  * @return boolean
  * @throws coding_exception
  */
 public function touch($id, $extraLifetime)
 {
     if ($this->cache === false) {
         return true;
     }
     try {
         return $this->cache->touch($id, $extraLifetime);
     } catch (Zend_Cache_Exception $e) {
         throw new coding_exception('Zend Cache Error: ' . $e->getMessage());
     }
 }