Bored? Looking to kill some time? Want to chat with other SMF users? Join us in IRC chat or Discord
Started by MobileCS, May 21, 2014, 03:18:28 PM
elseif (function_exists('apc_fetch')) $value = apc_fetch($key . 'smf');
if (empty($modSettings['cache_enable']) && !empty($modSettings)) return;
Quote from: Arantor on May 21, 2014, 03:24:19 PMBetter question... if caching is disabled why hasn't cache_get_data() already returned?A few lines above that:Code Select Expand if (empty($modSettings['cache_enable']) && !empty($modSettings)) return;Since cache level 0 (no caching) would put a value of 0 into cache_enable, that empty() would be true... so it should be exiting before that and never calling apc_fetch.
Quote from: MobileCS on May 21, 2014, 05:02:56 PMOk, thanks for letting me know.I'll leave it commented out until I am able to upgrade to 2.1