mirror of
https://github.com/friendica/friendica
synced 2024-12-23 08:40:16 +00:00
Merge pull request #776 from annando/master
Delete all APC values before showing them in the settings and admin section
This commit is contained in:
commit
621df0d79b
2 changed files with 10 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue