diff options
Diffstat (limited to 'phpBB/cron.php')
-rw-r--r-- | phpBB/cron.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/phpBB/cron.php b/phpBB/cron.php index 7fe4ae7da6..9f2c59966c 100644 --- a/phpBB/cron.php +++ b/phpBB/cron.php @@ -207,6 +207,15 @@ switch ($cron_type) break; } +// Unload cache, must be done before the DB connection is closed +if (!empty($cache)) +{ + $cache->unload(); +} + +// Close our DB connection. +$db->sql_close(); + // Output transparent gif header('Cache-Control: no-cache'); header('Content-type: image/gif'); |