From c3563e18ed096a723b2c42940bb765af60a99893 Mon Sep 17 00:00:00 2001 From: quix0r Date: Sat, 10 Nov 2012 14:47:54 +0000 Subject: [PATCH] Added missing wrapper for 'auto_purge' configuration --- inc/libs/autopurge_functions.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/inc/libs/autopurge_functions.php b/inc/libs/autopurge_functions.php index a8ecdd1771..e1b5526b3e 100644 --- a/inc/libs/autopurge_functions.php +++ b/inc/libs/autopurge_functions.php @@ -109,6 +109,18 @@ function getApInactiveTime () { return $GLOBALS[__FUNCTION__]; } +// "Getter" for auto_purge +function getAutoPurge () { + // Is there cache? + if (!isset($GLOBALS[__FUNCTION__])) { + // Determine it + $GLOBALS[__FUNCTION__] = getConfig('auto_purge'); + } // END - if + + // Return cache + return $GLOBALS[__FUNCTION__]; +} + // "Getter" for ap_dm_timeout function getApDmTimeout () { // Is there cache? -- 2.39.5