.

SimpleCacheManager Class Reference
[Controller]

Very simple cache manager. More...

Inheritance diagram for SimpleCacheManager:
ConstantCacheManager ICacheManager SuccessCacheManager

List of all members.

Public Member Functions

  __construct ($duration=7200)

Detailed Description

Very simple cache manager.

Returns the current url as cache id

Author:
Gerd Riesselmann

Definition at line 10 of file simplecachemanager.cls.php.


Constructor & Destructor Documentation

SimpleCacheManager::__construct ( duration = 7200  ) 

Definition at line 11 of file simplecachemanager.cls.php.

00011                                                       {
00012                 $url = Url::current();
00013                 $cache_id = array();
00014                         
00015                 if ($url->get_host() != Config::get_value(Config::URL_DOMAIN)) {
00016                         $cache_id[] = $url->get_host();
00017                 }
00018                 
00019                 $path = $url->get_path();
00020                 if (empty($path)) {
00021                         $path = '.';
00022                 }
00023                 $cache_id[] = $path;                    
00024                 $cache_id[] = $url->get_query();
00025                 parent::__construct($cache_id, $duration, CacheHeaderManagerFactory::create(Config::get_value(Config::CACHEHEADER_CLASS_CACHED)));
00026         }

The documentation for this class was generated from the following file: