Skip to content
Snippets Groups Projects
Commit 2e3d6a01 authored by Kazutaka Miyasaka's avatar Kazutaka Miyasaka
Browse files

fixed a cache handling bug

Ignore-this: fa3ae95ced3fbec584a8ceb5162b654d

darcs-hash:20091130112027-9b77a-07dbd7e47c8ea1a14b8d93fd92a9a874db85f645.gz
parent e4d8a516
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment