]> git.mxchange.org Git - mailer.git/commitdiff
Added missing wrapper for 'auto_purge' configuration
authorquix0r <quix0r@mxchange.org>
Sat, 10 Nov 2012 14:47:54 +0000 (14:47 +0000)
committerquix0r <quix0r@mxchange.org>
Sat, 10 Nov 2012 14:47:54 +0000 (14:47 +0000)
inc/libs/autopurge_functions.php

index a8ecdd1771ab09d833cefc5ebefe83404e0b959e..e1b5526b3e22f51c9c814aba20083f63c99538a3 100644 (file)
@@ -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?