clearPages() abstract public method

Deletes the pages stored in the cache.
abstract public clearPages ( ) : void
return void
Esempio n. 1
0
 /**
  * Clears the cache.
  *
  * @param string
  *    $p_type If given is 'user', the user cache will be cleard,
  *            otherwise the system cache (cached files) will be.
  *
  * @return boolean
  *                 TRUE on success, FALSE on failure
  */
 public function clear($p_type = null)
 {
     if (!self::$m_enabled) {
         return false;
     }
     if ($p_type == 'user') {
         return $this->m_cacheEngine->clearValues();
     } else {
         return $this->m_cacheEngine->clearPages();
     }
 }
Esempio n. 2
0
 /**
  * Clears the cache.
  *
  * @param string
  *    $p_type If given is 'user', the user cache will be cleard,
  *            otherwise the system cache (cached files) will be.
  *
  * @return boolean
  *    TRUE on success, FALSE on failure
  */
 public function clear($p_type = null)
 {
     if (!self::$m_enabled) {
         return false;
     }
     CampSession::singleton()->setData(SystemPref::SESSION_KEY_CACHE_ENGINE, null, 'default', true);
     if ($p_type == 'user') {
         return $this->m_cacheEngine->clearValues();
     } else {
         return $this->m_cacheEngine->clearPages();
     }
 } // fn clear