From: quix0r 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=c3563e18ed096a723b2c42940bb765af60a99893;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?