summaryrefslogtreecommitdiff
path: root/inc/cache.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/cache.php')
-rw-r--r--inc/cache.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/cache.php b/inc/cache.php
index 9a9d5e3b0..8e8adfd6d 100644
--- a/inc/cache.php
+++ b/inc/cache.php
@@ -224,7 +224,7 @@ class cache_renderer extends cache_parser {
// check current link existence is consistent with cache version
// first check the purgefile
// - if the cache is more recent than the purgefile we know no links can have been updated
- if ($this->_time > @filemtime($conf['cachedir'].'/purgefile')) {
+ if ($this->_time >= @filemtime($conf['cachedir'].'/purgefile')) {
return true;
}
@@ -232,7 +232,7 @@ class cache_renderer extends cache_parser {
$metadata = p_get_metadata($this->page);
if (!isset($metadata['relation']['references']) ||
- !empty($metadata['relation']['references'])) {
+ empty($metadata['relation']['references'])) {
return true;
}