]> git.mxchange.org Git - mailer.git/blobdiff - inc/load_cache.php
Cache loader and autopurge rewritten
[mailer.git] / inc / load_cache.php
index 37449da66528cf8d30330f8420f8d12955a29bad..c63d92561a069fac0e85fe2b887825b2d192e7e3 100644 (file)
@@ -37,20 +37,14 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) {
        require($INC);
 }
 
-// Load admin cache
-require_once(PATH."inc/load_cache-admin.php");
+// Load more cache includes
+$INC_POOL = GET_DIR_AS_ARRAY(PATH."inc/loader/", "load_cache-");
 
-// Load mod_reg cache
-require_once(PATH."inc/load_cache-modreg.php");
-
-// Load config cache
-require_once(PATH."inc/load_cache-config.php");
-
-// Load refsystem cache
-require_once(PATH."inc/load_cache-refsystem.php");
-
-// Load refdepths cache
-require_once(PATH."inc/load_cache-refdepths.php");
+// Include all
+foreach ($INC_POOL as $fqfn) {
+       // Include the file
+       require_once($fqfn);
+} // END - foreach
 
 //
 ?>