mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-06 13:16:54 +02:00
minify.[css|js] cached by the browser #212
This commit is contained in:
@@ -46,6 +46,9 @@ class PluginsAdmin extends Backend
|
||||
// Clean Monstra TMP folder.
|
||||
Monstra::cleanTmp();
|
||||
|
||||
Stylesheet::stylesVersionIncrement();
|
||||
Javascript::javascriptVersionIncrement();
|
||||
|
||||
// Delete plugin form plugins table
|
||||
$plugins->deleteWhere('[name="'.Request::get('delete_plugin').'"]');
|
||||
|
||||
@@ -74,6 +77,9 @@ class PluginsAdmin extends Backend
|
||||
// Clean Monstra TMP folder.
|
||||
Monstra::cleanTmp();
|
||||
|
||||
Stylesheet::stylesVersionIncrement();
|
||||
Javascript::javascriptVersionIncrement();
|
||||
|
||||
// Run plugin installer file
|
||||
$plugin_name = str_replace(array("Plugin", ".manifest.xml"), "", Request::get('install'));
|
||||
if (File::exists(PLUGINS . DS .basename(Text::lowercase(Request::get('install')), '.manifest.xml') . DS . 'install' . DS . $plugin_name . '.install.php')) {
|
||||
@@ -91,6 +97,12 @@ class PluginsAdmin extends Backend
|
||||
|
||||
if (Security::check(Request::get('token'))) {
|
||||
|
||||
// Clean Monstra TMP folder.
|
||||
Monstra::cleanTmp();
|
||||
|
||||
Stylesheet::stylesVersionIncrement();
|
||||
Javascript::javascriptVersionIncrement();
|
||||
|
||||
Dir::delete(PLUGINS . DS . basename(Request::get('delete_plugin_from_server'), '.manifest.xml'));
|
||||
Request::redirect('index.php?id=plugins');
|
||||
|
||||
|
Reference in New Issue
Block a user