gyro/core/controller/base/cachemanager/succescachemanager.cls.php
Go to the documentation of this file.00001 <?php 00002 require_once dirname(__FILE__) . '/simplecachemanager.cls.php'; 00003 00004 /** 00005 * Caches only when logged in, uses current URL 00006 * 00007 * @author Gerd Riesselmann 00008 * @ingroup Controller 00009 */ 00010 class SuccessCacheManager extends SimpleCacheManager { 00011 /** 00012 * Page data 00013 * 00014 * @var PageData 00015 */ 00016 protected $page_data; 00017 00018 public function initialize($page_data) { 00019 $this->page_data = $page_data; 00020 } 00021 00022 /** 00023 * Return a chache id 00024 */ 00025 public function get_cache_id() { 00026 $ret = false; 00027 if ($this->page_data->successful()) { 00028 $ret = parent::get_cache_id(); 00029 } 00030 return $ret; 00031 } 00032 }