]> git.mxchange.org Git - mailer.git/commitdiff
Missing function CACHE_PURGE_ADMIN_MENU() added (stub)
authorRoland Häder <roland@mxchange.org>
Tue, 16 Sep 2008 14:48:10 +0000 (14:48 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 16 Sep 2008 14:48:10 +0000 (14:48 +0000)
inc/databases.php
inc/functions.php

index 2cb23a81af6bad46d94828e2c1033b95d9c09bcb..cd82d19dd97493a107b778c40c38b6d60882c99d 100644 (file)
@@ -113,7 +113,7 @@ define('USAGE_BASE', "usage");
 define('SERVER_URL', "http://www.mxchange.org");
 
 // This current patch level
 define('SERVER_URL', "http://www.mxchange.org");
 
 // This current patch level
-define('CURR_SVN_REVISION', "339");
+define('CURR_SVN_REVISION', "340");
 
 // Take a prime number which is long (if you know a longer one please try it out!)
 define('_PRIME', 591623);
 
 // Take a prime number which is long (if you know a longer one please try it out!)
 define('_PRIME', 591623);
index 9a9f9d195a53ed2bbb551e3e938828e86fed88b4..533e824c60ed1327130ef6161141f9dcc89eaf06 100644 (file)
@@ -2515,6 +2515,26 @@ function REBUILD_CACHE ($cache, $inc="") {
                } // END - if
        } // END - if
 }
                } // END - if
        } // END - if
 }
+// Purge admin menu cache
+function CACHE_PURGE_ADMIN_MENU ($id=0, $action="", $what="", $str="") {
+       global $_CONFIG, $cacheInstance;
+
+       // Is the cache extension enabled or no cache instance or admin menu cache disabled?
+       if (!EXT_IS_ACTIVE("cache")) {
+               // Cache extension not active
+               return false;
+       } elseif (!is_object($cacheInstance)) {
+               // No cache instance!
+               DEBUG_LOG(__FUNCTION__.": No cache instance found.");
+               return false;
+       } elseif ((!isset($_CONFIG['cache_admin_menu'])) || ($_CONFIG['cache_admin_menu'] == "N")) {
+               // Caching disabled (currently experiemental!)
+               return false;
+       }
+
+       // Experiemental feature!
+       trigger_error("You have to delete the admin_*.cache files by yourself at this point.");
+}
 //
 //////////////////////////////////////////////////
 //                                              //
 //
 //////////////////////////////////////////////////
 //                                              //