Skip to content
Snippets Groups Projects
Commit d4b5605e authored by Andreas Gohr's avatar Andreas Gohr
Browse files

Merge pull request #706 from splitbrain/Issue694

Fixes #694
parents 59d6be95 9d60a747
No related branches found
No related tags found
No related merge requests found
......@@ -18,11 +18,14 @@ class cache_use_test extends DokuWikiTest {
$conf['cachetime'] = 0; // ensure the value is not -1, which disables caching
saveWikiText($ID, 'Content', 'Created');
// set the modification time a second in the past in order to ensure that the cache is newer than the page
touch($file, time()-1);
$this->cache = new cache_renderer($ID, $file, 'xhtml');
$this->cache->storeCache('Test');
// set the modification times explicitly (overcome Issue #694)
$time = time();
touch($file, $time-1);
touch($this->cache->cache, $time);
}
function test_use() {
......
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