Skip to content

Commit

Permalink
Internal: Improve APCu cache invalidation process
Browse files Browse the repository at this point in the history
  • Loading branch information
ywarnier committed Jan 17, 2023
1 parent 664a71c commit acecfc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions main/admin/settings.lib.php
Expand Up @@ -36,6 +36,7 @@ function handleRegions()
api_get_utc_datetime(),
$user_id
);
api_flush_settings_cache(api_get_current_access_url_id());
echo Display::return_message(get_lang('SettingsStored'), 'confirmation');
}

Expand Down Expand Up @@ -1561,6 +1562,7 @@ function addEditTemplate()
echo Display::return_message(get_lang('TemplateEdited'), 'confirm');
}
}
api_flush_settings_cache(api_get_current_access_url_id());
Security::clear_token('frm');
header('Location: '.api_get_path(WEB_CODE_PATH).'admin/settings.php?category=Templates');
exit;
Expand Down
2 changes: 0 additions & 2 deletions main/admin/settings.php
Expand Up @@ -444,7 +444,6 @@
switch ($_GET['category']) {
case 'Regions':
handleRegions();
$flushSettings = true;
break;
case 'Plugins':
// Displaying the extensions: Plugins.
Expand Down Expand Up @@ -509,7 +508,6 @@
break;
case 'Templates':
handleTemplates();
$flushSettings = true;
break;
case 'search_setting':
if (isset($_REQUEST['search_field'])) {
Expand Down

0 comments on commit acecfc4

Please sign in to comment.