Make metadata cache dependency non-strict
This commit is contained in:
parent
27849ebfc6
commit
2302d6be19
1 changed files with 2 additions and 3 deletions
|
@ -207,6 +207,8 @@ class cache_renderer extends cache_parser {
|
|||
return true;
|
||||
}
|
||||
|
||||
if ($this->_time < @filemtime(metaFN($this->page,'.meta'))) return false; // meta cache older than file it depends on?
|
||||
|
||||
// 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
|
||||
|
@ -239,9 +241,6 @@ class cache_renderer extends cache_parser {
|
|||
// page implies metadata and possibly some other dependencies
|
||||
if (isset($this->page)) {
|
||||
|
||||
$metafile = metaFN($this->page,'.meta');
|
||||
$files[] = $metafile; // ... the page's own metadata
|
||||
|
||||
$valid = p_get_metadata($this->page, 'date valid'); // for xhtml this will render the metadata if needed
|
||||
if (!empty($valid['age'])) {
|
||||
$this->depends['age'] = isset($this->depends['age']) ?
|
||||
|
|
Loading…
Reference in a new issue