diff options
Diffstat (limited to 'inc/cache.php')
-rw-r--r-- | inc/cache.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/cache.php b/inc/cache.php index a6979d1c2..900644d09 100644 --- a/inc/cache.php +++ b/inc/cache.php @@ -29,7 +29,7 @@ class cache { /** * public method to determine whether the cache can be used * - * to assist in cetralisation of event triggering and calculation of cache statistics, + * to assist in cetralisation of event triggering and calculation of cache statistics, * don't override this function override _useCache() * * @param array $depends array of cache dependencies, support dependecies: @@ -183,7 +183,7 @@ class cache_parser extends cache { function _addDependencies() { global $conf, $config_cascade; - $this->depends['age'] = isset($this->depends['age']) ? + $this->depends['age'] = isset($this->depends['age']) ? min($this->depends['age'],$conf['cachetime']) : $conf['cachetime']; // parser cache file dependencies ... |