Index: branches/5.0.x/core/admin_templates/tools/system_tools.tpl
===================================================================
diff -u -r12117 -r12481
--- branches/5.0.x/core/admin_templates/tools/system_tools.tpl (.../system_tools.tpl) (revision 12117)
+++ branches/5.0.x/core/admin_templates/tools/system_tools.tpl (.../system_tools.tpl) (revision 12481)
@@ -72,4 +72,10 @@
+
+
\ No newline at end of file
Index: branches/5.0.x/core/admin_templates/config/config_general.tpl
===================================================================
diff -u -r12117 -r12481
--- branches/5.0.x/core/admin_templates/config/config_general.tpl (.../config_general.tpl) (revision 12117)
+++ branches/5.0.x/core/admin_templates/config/config_general.tpl (.../config_general.tpl) (revision 12481)
@@ -117,4 +117,16 @@
+
+
\ No newline at end of file
Index: branches/5.0.x/core/units/admin/admin_events_handler.php
===================================================================
diff -u -r12450 -r12481
--- branches/5.0.x/core/units/admin/admin_events_handler.php (.../admin_events_handler.php) (revision 12450)
+++ branches/5.0.x/core/units/admin/admin_events_handler.php (.../admin_events_handler.php) (revision 12481)
@@ -1,6 +1,6 @@
status = erSTOP;
}
- $this->Conn->Query('DELETE FROM '.TABLE_PREFIX.'Cache WHERE VarName = "sections_parsed"');
+ $sql = 'DELETE FROM ' . TABLE_PREFIX . 'Cache
+ WHERE VarName = "sections_parsed"';
+ $this->Conn->Query($sql);
+
if (isset($this->Application->Memcached)) {
$this->Application->Memcached->delete('master:sections_parsed');
}
+
+ $event->SetRedirectParam('refresh_tree', 1);
}
function OnResetConfigsCache(&$event)
{
if ($this->Application->GetVar('ajax') == 'yes') {
$event->status = erSTOP;
}
- $this->Conn->Query('DELETE FROM '.TABLE_PREFIX.'Cache WHERE VarName = "config_files" OR VarName = "configs_parsed" OR VarName = "sections_parsed"');
+
+ $sql = 'DELETE FROM ' . TABLE_PREFIX . 'Cache
+ WHERE VarName IN("config_files", "configs_parsed", "sections_parsed")';
+ $this->Conn->Query($sql);
+
if (isset($this->Application->Memcached)) {
$this->Application->Memcached->delete('master:config_files');
$this->Application->Memcached->delete('master:configs_parsed');
$this->Application->Memcached->delete('master:sections_parsed');
}
+
+ $event->SetRedirectParam('refresh_tree', 1);
}
function OnCompileTemplates(&$event)