Automattic / wp-memcached

Memcached Object Cache for WordPress.
https://wordpress.org/plugins/memcached/
GNU General Public License v2.0
157 stars 55 forks source link

Prevent fatals upon plugin activation #157

Open dd32 opened 5 months ago

dd32 commented 5 months ago

This object cache is distributed on https://wordpress.org/plugins/memcached/ as a plugin, but can't actually be used as one. The installation instructions do suggest it requires extra configutaration, but since most plugins only have junk there, no-one looks at it.

Due to the number of end-users who attempt to install it (See the support threads), only to be met with a fatal error, we should disable the plugin activation aspect of the plugin and present a useful error message to the end-user, rather than simply showing a fatal error.

I'm not sure of the best method to achieve this, but if it's going to be on WordPress.org/plugins it would be great to remove that "limitation".

drzraf commented 5 months ago

mu-plugins seems a good fit for this plugin Would also be nice not to throw a fatal error if memcache is not installed / uninstalled / disabled.