aboutsummaryrefslogtreecommitdiff
path: root/simplecache/view.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-04-23 12:31:30 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-04-23 12:31:30 +0000
commitd71653498c6a35a944d29025c4c79b128da3fb9a (patch)
tree85cee4a15efd70e4b30e21a53f9278da0af7d436 /simplecache/view.php
parent9d862819cf8f1d9f14a4f5465ca84579b05fb959 (diff)
downloadelgg-d71653498c6a35a944d29025c4c79b128da3fb9a.tar.gz
elgg-d71653498c6a35a944d29025c4c79b128da3fb9a.tar.bz2
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
Diffstat (limited to 'simplecache/view.php')
-rw-r--r--simplecache/view.php4
1 files changed, 3 insertions, 1 deletions
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 {