From: Roland Häder Date: Sat, 4 Oct 2008 13:11:19 +0000 (+0000) Subject: Cache will be rebuild after refback is installed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fa3cca8d61ae4840e6781eb39ed69c9ca89fe172;p=mailer.git Cache will be rebuild after refback is installed --- diff --git a/inc/databases.php b/inc/databases.php index 8151bbf3ad..208de7f03c 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -113,7 +113,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // This current patch level -define('CURR_SVN_REVISION', "443"); +define('CURR_SVN_REVISION', "445"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/inc/extensions/ext-refback.php b/inc/extensions/ext-refback.php index 3945f2ec56..4c9545ab62 100644 --- a/inc/extensions/ext-refback.php +++ b/inc/extensions/ext-refback.php @@ -109,7 +109,7 @@ if ($EXT_LOAD_MODE == "register") { $EXT_LANG_PREFIX = "refback"; // Extension is always active? -$EXT_ALWAYS_ACTIVE = "Y"; +$EXT_ALWAYS_ACTIVE = "N"; // ?> diff --git a/inc/gen_refback.php b/inc/gen_refback.php index 7c29ede371..bfdf7a3fd2 100644 --- a/inc/gen_refback.php +++ b/inc/gen_refback.php @@ -51,6 +51,9 @@ if (SQL_NUMROWS($result) > 0) { // Add it again SQL_QUERY("ALTER TABLE `"._MYSQL_PREFIX."_refsystem` ADD UNIQUE `userid_level` ( `userid` , `level` )", __FILE__, __LINE__); + + // Rebuild cache + REBUILD_CACHE("refsystem", "refsystem"); } // END - if // Free result diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index 57572a1570..70721b8687 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -1303,7 +1303,7 @@ function UPDATE_REF_COUNTER ($uid) { } elseif ((($ref == $uid) || ($ref == 0)) && (GET_EXT_VERSION("cache") >= "0.1.2")) { // Remove cache here //* DEBUG: */ print __FUNCTION__."(".__LINE__."):ref={$ref} - CACHE!
\n"; - if ($cacheInstance->cache_file("refsystem", true)) $cacheInstance->cache_destroy(); + REBUILD_CACHE("refsystem", "refsystem"); } // "Walk" back here