discuz 后台获取不到插件缓存,前台可以
由于调用系统缓存统一通过 loadcache() 函数调用,并存放于 $_G['cache'] 中,因此 loadcache('plugin') 后插件的变量缓会存放于 $_G['cache']['plugin'] 中。
比如:关于我们 插件中about.inc.php文件
loadcache('plugin');
$_G['cache']['plugin']['about'];由于调用系统缓存统一通过 loadcache() 函数调用,并存放于 $_G['cache'] 中,因此 loadcache('plugin') 后插件的变量缓会存放于 $_G['cache']['plugin'] 中。
比如:关于我们 插件中about.inc.php文件
loadcache('plugin');
$_G['cache']['plugin']['about'];