aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {