From d71653498c6a35a944d29025c4c79b128da3fb9a Mon Sep 17 00:00:00 2001 From: marcus Date: Thu, 23 Apr 2009 12:31:30 +0000 Subject: Closes #989: Forces regenerate on next refresh when cache file is missing git-svn-id: https://code.elgg.org/elgg/trunk@3229 36083f99-b078-4883-b0ff-0f9b5a30f544 --- simplecache/view.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'simplecache') diff --git a/simplecache/view.php b/simplecache/view.php index da6f68777..3bb621036 100644 --- a/simplecache/view.php +++ b/simplecache/view.php @@ -50,7 +50,9 @@ if (file_exists($filename)) { $contents = file_get_contents($filename); header("Content-Length: " . strlen($contents)); - } else { + } else { + mysql_query("INSERT into {$CONFIG->dbprefix}datalists set name = 'simplecache_lastupdate', value = '0' ON DUPLICATE KEY UPDATE value='0'"); + echo ''; exit; } } else { -- cgit v1.2.3