Merge pull request #1442 from moteus/acl_flush_memcache
Fix. Clear memcache after edit ACL.
This commit is contained in:
commit
ea07e944a7
|
|
@ -34,6 +34,9 @@ else {
|
|||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
$prep_statement->execute();
|
||||
unset($sql);
|
||||
|
||||
// clear cache
|
||||
remove_config_from_cache('configuration:acl.conf');
|
||||
}
|
||||
|
||||
//redirect the user
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
$db->exec(check_sql($sql));
|
||||
unset($sql);
|
||||
|
||||
remove_config_from_cache('configuration:acl.conf');
|
||||
$_SESSION['message'] = $text['message-add'];
|
||||
header('Location: access_controls.php');
|
||||
return;
|
||||
|
|
@ -89,6 +90,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
$db->exec(check_sql($sql));
|
||||
unset($sql);
|
||||
|
||||
remove_config_from_cache('configuration:acl.conf');
|
||||
$_SESSION['message'] = $text['message-update'];
|
||||
header('Location: access_controls.php');
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ else {
|
|||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
$prep_statement->execute();
|
||||
unset($sql);
|
||||
remove_config_from_cache('configuration:acl.conf');
|
||||
}
|
||||
|
||||
//redirect the user
|
||||
|
|
|
|||
|
|
@ -85,6 +85,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
$db->exec(check_sql($sql));
|
||||
unset($sql);
|
||||
|
||||
remove_config_from_cache('configuration:acl.conf');
|
||||
$_SESSION['message'] = $text['message-add'];
|
||||
header('Location: access_control_edit.php?id='.$access_control_uuid);
|
||||
return;
|
||||
|
|
@ -102,6 +103,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
$db->exec(check_sql($sql));
|
||||
unset($sql);
|
||||
|
||||
remove_config_from_cache('configuration:acl.conf');
|
||||
$_SESSION['message'] = $text['message-update'];
|
||||
header('Location: access_control_edit.php?id='.$access_control_uuid);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue