From: Roland Häder Date: Sat, 10 Nov 2012 14:47:54 +0000 (+0000) Subject: Added missing wrapper for 'auto_purge' configuration X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=27ba1407698cdb57d1e061d0a9c4739e90091aa0;p=mailer.git Added missing wrapper for 'auto_purge' configuration --- 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?