From ab7d8bc6abe79a5384a8e2c284eca7eae1b16b60 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Fri, 27 Sep 2013 23:02:59 +0200 Subject: [PATCH] Delete all APC values before showing them in the settings and admin section --- mod/admin.php | 5 +++++ mod/settings.php | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/mod/admin.php b/mod/admin.php index 4539e4192b..f1f895dbcc 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -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 */ diff --git a/mod/settings.php b/mod/settings.php index f9d5b712ca..12f7910cce 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -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"); -- 2.39.5