diff options
author | cash <cash.costello@gmail.com> | 2013-02-23 11:46:38 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2013-02-23 11:46:38 -0500 |
commit | a88e45243afff71d103fec7440b219de8bdd79f5 (patch) | |
tree | e540762f6841a828da702f184000f2e0dcf3efe3 | |
parent | 5ecd127960654865716742282e1c5db66ca398af (diff) | |
download | elgg-a88e45243afff71d103fec7440b219de8bdd79f5.tar.gz elgg-a88e45243afff71d103fec7440b219de8bdd79f5.tar.bz2 |
Fixes #4883 do not regenerate cache when someone requests a non cached view
-rw-r--r-- | engine/handlers/cache_handler.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engine/handlers/cache_handler.php b/engine/handlers/cache_handler.php index 7706c2c92..9848d3531 100644 --- a/engine/handlers/cache_handler.php +++ b/engine/handlers/cache_handler.php @@ -93,7 +93,12 @@ if (file_exists($filename)) { // someone trying to access a non-cached file or a race condition with cache flushing mysql_close($mysql_dblink); require_once(dirname(dirname(__FILE__)) . "/start.php"); - elgg_regenerate_simplecache(); + + global $CONFIG; + if (!isset($CONFIG->views->simplecache[$view])) { + header("HTTP/1.1 404 Not Found"); + exit; + } elgg_set_viewtype($viewtype); $contents = elgg_view($view); |