Internal: Improve APCu cache invalidation process

pull/4550/head
Yannick Warnier 3 years ago
parent 664a71c866
commit acecfc4108
  1. 2
      main/admin/settings.lib.php
  2. 2
      main/admin/settings.php

@ -36,6 +36,7 @@ function handleRegions()
api_get_utc_datetime(), api_get_utc_datetime(),
$user_id $user_id
); );
api_flush_settings_cache(api_get_current_access_url_id());
echo Display::return_message(get_lang('SettingsStored'), 'confirmation'); echo Display::return_message(get_lang('SettingsStored'), 'confirmation');
} }
@ -1561,6 +1562,7 @@ function addEditTemplate()
echo Display::return_message(get_lang('TemplateEdited'), 'confirm'); echo Display::return_message(get_lang('TemplateEdited'), 'confirm');
} }
} }
api_flush_settings_cache(api_get_current_access_url_id());
Security::clear_token('frm'); Security::clear_token('frm');
header('Location: '.api_get_path(WEB_CODE_PATH).'admin/settings.php?category=Templates'); header('Location: '.api_get_path(WEB_CODE_PATH).'admin/settings.php?category=Templates');
exit; exit;

@ -444,7 +444,6 @@ if (!empty($_GET['category'])) {
switch ($_GET['category']) { switch ($_GET['category']) {
case 'Regions': case 'Regions':
handleRegions(); handleRegions();
$flushSettings = true;
break; break;
case 'Plugins': case 'Plugins':
// Displaying the extensions: Plugins. // Displaying the extensions: Plugins.
@ -509,7 +508,6 @@ if (!empty($_GET['category'])) {
break; break;
case 'Templates': case 'Templates':
handleTemplates(); handleTemplates();
$flushSettings = true;
break; break;
case 'search_setting': case 'search_setting':
if (isset($_REQUEST['search_field'])) { if (isset($_REQUEST['search_field'])) {

Loading…
Cancel
Save