mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
Clear Content cache after updating URL settings.
This commit is contained in:
@@ -456,8 +456,6 @@ class eurl_admin_ui extends e_admin_controller_ui
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(isset($_POST['update']))
|
if(isset($_POST['update']))
|
||||||
{
|
{
|
||||||
$config = is_array($_POST['eurl_config']) ? e107::getParser()->post_toForm($_POST['eurl_config']) : '';
|
$config = is_array($_POST['eurl_config']) ? e107::getParser()->post_toForm($_POST['eurl_config']) : '';
|
||||||
@@ -481,9 +479,9 @@ class eurl_admin_ui extends e_admin_controller_ui
|
|||||||
->save();
|
->save();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
eRouter::clearCache();
|
eRouter::clearCache();
|
||||||
|
e107::getCache()->clearAll('content'); // clear content - it may be using old url scheme.
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user