Delete all APC values before showing them in the settings and admin section

This commit is contained in:
Michael Vogel 2013-09-27 23:02:59 +02:00
父節點 34d0eb709b
當前提交 ab7d8bc6ab
共有 2 個文件被更改,包括 10 次插入0 次删除

查看文件

@ -87,6 +87,11 @@ function admin_content(&$a) {
if(x($_SESSION,'submanage') && intval($_SESSION['submanage']))
return "";
if (function_exists("apc_delete")) {
$toDelete = new APCIterator('user', APC_ITER_VALUE);
apc_delete($toDelete);
}
/**
* Side bar links
*/

查看文件

@ -16,6 +16,11 @@ function get_theme_config_file($theme){
function settings_init(&$a) {
if (function_exists("apc_delete")) {
$toDelete = new APCIterator('user', APC_ITER_VALUE);
apc_delete($toDelete);
}
// These lines provide the javascript needed by the acl selector
$tpl = get_markup_template("settings-head.tpl");