summaryrefslogtreecommitdiff
path: root/inc/cache.php
diff options
context:
space:
mode:
authorKazutaka Miyasaka <kazmiya@gmail.com>2009-11-30 12:20:27 +0100
committerKazutaka Miyasaka <kazmiya@gmail.com>2009-11-30 12:20:27 +0100
commit2e3d6a012d63f60e006fe88e0c61031d2a96c26d (patch)
treec6a4727146299d1f06faa5a87b86b687a03e570b /inc/cache.php
parente4d8a51642a27370761a1968223cd213fa35c20f (diff)
downloadrpg-2e3d6a012d63f60e006fe88e0c61031d2a96c26d.tar.gz
rpg-2e3d6a012d63f60e006fe88e0c61031d2a96c26d.tar.bz2
fixed a cache handling bug
Ignore-this: fa3ae95ced3fbec584a8ceb5162b654d darcs-hash:20091130112027-9b77a-07dbd7e47c8ea1a14b8d93fd92a9a874db85f645.gz
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;
}