예제 #1
0
 /**
  * Requires a site id and page id - create a folder for the page if needed
  * @return void
  */
 public function store($key, $cache_val)
 {
     if ($this->get_site_id() && $this->get_page_id()) {
         if (!$this->page_cache_exists()) {
             $this->_create_page_cache_directory();
         }
         parent::store($key, $cache_val);
     } else {
         trigger_error('ReasonPageCache needs to be given a site id and page id in order to cache a page.');
     }
 }