From 27ba1407698cdb57d1e061d0a9c4739e90091aa0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= 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