boldenamsterdam / htmlcache

Cache pages to HTML and boost website performance on Craft CMS 3
MIT License
31 stars 21 forks source link

Uninstall fails #41

Open luke-nehemedia opened 2 years ago

luke-nehemedia commented 2 years ago

How can I uninstall the plugin? I always get an error:

*** failed to uninstall html-cache: Getting unknown property: bolden\htmlcache\HtmlCache::htmlcacheService

Since the plugin is not developed anymore, I would like to remove it from the system.

scholejo commented 2 years ago

I know this is quite old but I just had the same issue and found out that the htmlcacheService Property is only assigned to the HtmlCache Class if you're not in Console-Mode. This has the effect that you can only uninstall the plugin from the Control Panel.

Another hint: Ensure that the directory storage/runtime/htmlcache exists or otherwise you'll get an exception when attempting to uninstall from the control panel.

Maybe this helps anyone in the future.