@dsl225 whenever you deactivate Asset CleanUp or delete it, the rules will always be preserved in the database in case you upgrade from Lite to Pro or you temporary deactivate Asset CleanUp for any reason. If you want them deleted, you can use the “Tools” -> “Reset” option. Does that help?
Thread Starter
John
(@dsl225)
Sorry but my it seems that my question was not not clear: I was asking what happens when I deactivate another plugin, not Asset Cleanup, that had unload rules in Asset Cleanup!
Asset CleanUp just triggers the unload process. It doesn’t affect (change in any way), the other plugins. So, if you deactivate a plugin that has unloaded rules set in Asset CleanUp, then those CSS/JS files from the plugin will obviously not load and Asset CleanUp won’t have anything to unload in the first place. It will just trigger the dequeue functions that won’t have any effect.
Thread Starter
John
(@dsl225)
Thanks Gabe,
My testing shows that the rule has been removed from pages where it was active when I deactivated/removed the 3rd party plugin. At least it doesn’t show up anymore.
In fact, my question should have been:
– What are steps to take when deactivating/deleting a plugin that had previous unload rules with AC – first remove the rules or simply delete the 3rd party plugin?
If you don’t want to have Asset CleanUp traces in the database of the handles that belong to that deactivated plugin, then you can first remove the rules, then deactivate/delete that plugin.
If you just delete the 3rd party plugin, then rules will stay there (in the database records) and they will only take effect whenever that plugin is re-activated.