]> git.mxchange.org Git - friendica.git/commitdiff
Delete all APC values before showing them in the settings and admin section
authorMichael Vogel <icarus@dabo.de>
Fri, 27 Sep 2013 21:02:59 +0000 (23:02 +0200)
committerMichael Vogel <icarus@dabo.de>
Fri, 27 Sep 2013 21:02:59 +0000 (23:02 +0200)
mod/admin.php
mod/settings.php

index 4539e4192b8f6f5a436a7c2f1ffe7a3baf4d70c6..f1f895dbcc23720493485974e0d192e18f1c3fc0 100644 (file)
@@ -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
         */
index f9d5b712ca016e9fab6cd50f2ed0c666524495a7..12f7910ccee6b6c35e599f0ef4a877b8912fc78a 100644 (file)
@@ -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");