X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Floader%2Fload_cache-refsystem.php;h=f551ef47b7591c74e7b59193e56a1fa6505a87ab;hb=c6e62b16b4474ead6b180a5b9648906459d846da;hp=4fd07642ccfd59879311b56d9a3f14cd131325f8;hpb=3e64a94e122e30dd66db07fd8c8cfae05871c460;p=mailer.git diff --git a/inc/loader/load_cache-refsystem.php b/inc/loader/load_cache-refsystem.php index 4fd07642cc..f551ef47b7 100644 --- a/inc/loader/load_cache-refsystem.php +++ b/inc/loader/load_cache-refsystem.php @@ -1,72 +1,3 @@ cache_file("refsystem", true) == true) { - // Load referral system from cache - global $cacheArray; - $cacheArray['ref_system'] = $cacheInstance->cache_load(); - - // Valid cache file - $CNT = 0; - foreach ($cacheArray['ref_system'] as $k => $array) { - $CNT += count($array); - } - - // We now ignore empty cache here -} elseif (($_CONFIG['cache_refsys'] == "Y") && ($CSS != "1") && ($CSS != "-1")) { - // Create cache file here - $cacheInstance->cache_init("refsystem"); - - // Load all modules and their data - $result = SQL_QUERY("SELECT id, userid, level, counter FROM "._MYSQL_PREFIX."_refsystem ORDER BY userid, level", __FILE__, __LINE__); - while ($DATA = SQL_FETCHARRAY($result)) { - // Add row to cache file - $cacheInstance->add_row($DATA); - } - - // Free memory - SQL_FREERESULT($result); -} - -// Close file -$cacheInstance->cache_close(); - -// +// @DEPRECATED ?>