]> git.mxchange.org Git - mailer.git/commitdiff
Cache will be rebuild after refback is installed
authorRoland Häder <roland@mxchange.org>
Sat, 4 Oct 2008 13:11:19 +0000 (13:11 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 4 Oct 2008 13:11:19 +0000 (13:11 +0000)
inc/databases.php
inc/extensions/ext-refback.php
inc/gen_refback.php
inc/mysql-manager.php

index 8151bbf3addce8c541008b06ea747fff44175c37..208de7f03c9e204f19f4a9fc9f879361fbd227df 100644 (file)
@@ -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);
index 3945f2ec560ef13987ad2696f85ff006f495f9a3..4c9545ab621d4ec5158e9ae8540bf61e0ef44434 100644 (file)
@@ -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";
 
 //
 ?>
index 7c29ede371ad238ac5636d8269ac899e41f6caaa..bfdf7a3fd21028026ef94a74b230edfe8b88cf44 100644 (file)
@@ -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
index 57572a157035ff6bc2e906eaf126620a03bf4445..70721b868773fb9db75e3baf9fbdf96b34ddff26 100644 (file)
@@ -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__."(<font color=\"#0000aa\">".__LINE__."</font>):ref={$ref} - CACHE!<br />\n";
-               if ($cacheInstance->cache_file("refsystem", true)) $cacheInstance->cache_destroy();
+               REBUILD_CACHE("refsystem", "refsystem");
        }
 
        // "Walk" back here