]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #4883 do not regenerate cache when someone requests a non cached view
authorcash <cash.costello@gmail.com>
Sat, 23 Feb 2013 16:46:38 +0000 (11:46 -0500)
committercash <cash.costello@gmail.com>
Sat, 23 Feb 2013 16:46:38 +0000 (11:46 -0500)
engine/handlers/cache_handler.php

index 7706c2c92efd6e7e7a6d44a75f86249ec9a54340..9848d35314add98c244b6e16adf8c173bd254ebf 100644 (file)
@@ -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);