From: Michael Vogel Date: Fri, 27 Sep 2013 21:02:59 +0000 (+0200) Subject: Delete all APC values before showing them in the settings and admin section X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ab7d8bc6abe79a5384a8e2c284eca7eae1b16b60;p=friendica.git Delete all APC values before showing them in the settings and admin section --- 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");