• Resolved John

    (@dsl225)


    Hi,

    What happens when de-activating a plugin (and further deleting it) that previously had unload rules enabled with Asset Cleanup?

    I tested at a test site and it seems that the rule vanished automatically but wanted to be sure: can safely deactivate and delete a plugin that had previous unload rules without trying to find those rules and remove those rules manually – is that correct?

    Many thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @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!

    Plugin Author Gabe Livan

    (@gabelivan)

    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?

    Plugin Author Gabe Livan

    (@gabelivan)

    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.

    Thread Starter John

    (@dsl225)

    Thanks Gabe, well noted.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Deactivating a plugin that had previous unload rules’ is closed to new replies.