Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 4.9.0-b1
-
Component/s: Staff Interface
-
Labels:None
Description
When upgrading a plugin via the Staff UI, it's possible that the upgraded plugins added new actions to the navigation. However, they will not appear after an upgrade. The staff groups would have to be re-saved in the UI for this to occur.
Instead, we should update the system to clear the cache any time a plugin is upgraded via the UI. Ideally, the navigation should be cleared for every company the plugin is apart of.
This probably should occur from the controller where the action is performed rather than PluginManager::upgrade since that method is called via the Blesta upgrade script as well, which already clears the navigation cache afterward.
It would also be great if we could abstract this cross-cutting functionality into a new /core/ class that can be used to replace all existing locations where we perform similar cache clearing for the nav.