|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| flush ($context=null, $type=CACHE_TYPE_FILE) | |
| getCache ($context, $cacheId, $fallback, $type=CACHE_TYPE_FILE) | |
| getCacheImplementation ($type) | |
| getFileCache ($context, $cacheId, $fallback) | |
| getObjectCache ($context, $cacheId, $fallback) | |
Static Public Member Functions | |
| static | getFileCachePath () |
| static | getManager () |
Definition at line 22 of file CacheManager.inc.php.
| CacheManager::flush | ( | $context = null, |
|
$type = CACHE_TYPE_FILE |
|||
| ) |
Flush an entire context, if specified, or the whole cache.
| $context | string The context to flush, if only one is to be flushed |
| $type | string The type of cache to flush |
Definition at line 122 of file CacheManager.inc.php.
References getCache(), getCacheImplementation(), and getFileCachePath().
| CacheManager::getCache | ( | $context, | |
| $cacheId, | |||
| $fallback, | |||
$type = CACHE_TYPE_FILE |
|||
| ) |
Get a cache.
| $context | string |
| $cacheId | string |
| $fallback | callback |
| $type | string Type of cache: CACHE_TYPE_... |
Definition at line 69 of file CacheManager.inc.php.
References getCacheImplementation(), getFileCache(), and Config\getVar().
Referenced by flush(), and getObjectCache().
| CacheManager::getCacheImplementation | ( | $type | ) |
Definition at line 53 of file CacheManager.inc.php.
References CACHE_TYPE_FILE, CACHE_TYPE_OBJECT, and Config\getVar().
Referenced by flush(), and getCache().
| CacheManager::getFileCache | ( | $context, | |
| $cacheId, | |||
| $fallback | |||
| ) |
Get a file cache.
| $context | string |
| $cacheId | string |
| $fallback | callback |
Definition at line 42 of file CacheManager.inc.php.
References getFileCachePath().
Referenced by getCache().
|
static |
Get the path in which file caches will be stored.
Definition at line 112 of file CacheManager.inc.php.
References Core\getBaseDir().
Referenced by PKPTemplateManager\__construct(), PKPTemplateManager\clearCssCache(), flush(), PKPTemplateManager\getCachedLessFilePath(), getFileCache(), and DAO\setCacheDir().
|
static |
Get the static instance of the cache manager.
Definition at line 27 of file CacheManager.inc.php.
References Registry\get().
Referenced by PKPLocale\_getAllLocalesCache(), PluginSettingsDAO\_getCache(), IssueDAO\_getCache(), SectionDAO\_getCache(), LocaleFile\_getCache(), PKPSubmissionDAO\_getCache(), SettingsDAO\_getCache(), UsageStatsPlugin\_getDownloadStats(), TimeZoneDAO\_getTimeZoneCache(), AdminHandler\clearDataCache(), Installer\clearDataCache(), NavigationMenuDAO\getCache(), Core\isUserAgentBot(), and FileCacheTest\setUp().
| CacheManager::getObjectCache | ( | $context, | |
| $cacheId, | |||
| $fallback | |||
| ) |
Definition at line 49 of file CacheManager.inc.php.
References CACHE_TYPE_OBJECT, and getCache().