Commit c2c0c9eb authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-4487 (Do not recursively call block_caching Cron hook if no...

Fixed MANTIS-4487 (Do not recursively call block_caching Cron hook if no blocks need special caching)
parent 256801c7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -28,6 +28,11 @@ class Hook_cron_block_caching
     */
    public function run()
    {
        $test = $GLOBALS['SITE_DB']->query_select_value_if_there('cron_caching_requests', 'c_theme');
        if ($test === null) {
            return;
        }

        if ((get_param_string('keep_lang', null) === null) || (get_param_string('keep_theme', null) === null)) {
            // We need to run this for each language and for each theme
            $langs = find_all_langs();