AnonymousCacheManager Class Reference
[Usermanagement]
Cache manager that caches only if user is not logged in. More...
Inheritance diagram for
AnonymousCacheManager:
Public Member Functions |
|
get_cache_header_manager () | |
Get cache header manager. |
|
get_cache_id () | |
Return a chache id. |
Detailed Description
Cache manager that caches only if user is not logged in.
If user is logged in, it returns the CacheHeaderManager set as ConfigUsermanagement::CACHEHEADER_CLASS_LOGGEDIN
Returns url as cache key
Definition at line 13 of file anonymouscachemanager.cls.php.
Member Function Documentation
AnonymousCacheManager::get_cache_header_manager | ( | ) |
Get cache header manager.
- Returns:
- ICacheHeaderManager
Reimplemented from ConstantCacheManager.
Definition at line 29 of file anonymouscachemanager.cls.php.
00029 { 00030 if (Users::is_logged_in()) { 00031 return CacheHeaderManagerFactory::create(Config::get_value(ConfigUsermanagement::CACHEHEADER_CLASS_LOGGEDIN)); 00032 } 00033 else { 00034 return parent::get_cache_header_manager(); 00035 } 00036 }
AnonymousCacheManager::get_cache_id | ( | ) |
Return a chache id.
Reimplemented from SuccessCacheManager.
Definition at line 17 of file anonymouscachemanager.cls.php.
00017 { 00018 if (Users::is_logged_in() == false) { 00019 return parent::get_cache_id(); 00020 } 00021 return ''; 00022 }
The documentation for this class was generated from the following file:
- contributions/usermanagement/controller/base/cachemanager/anonymouscachemanager.cls.php