WP Super Cache是一款非常强大的wordpress静态化插件,很多人甚至认为它是最优秀的,因为它的兼容性,还有强大的功能。不过正因为他的功能机制很复杂,所以小流量的博客也许不适合,这里特别翻译介绍官方英文卸载删除步骤和意外处理办法:
1、别急着在插件管理里停用插件,先到WP Super Cache配置页面下停用插件,然后删除所有缓存。
2、再在件管理里停用插件,然后继续选择卸载。
3、如果出现以下提示
UNINSTALL_WPSUPERCACHE must be set to a non-blank value in uninstall.php
需要在WP Super Cache插件安装目录下找到uninstall.php文件,将
define( 'UNINSTALL_WPSUPERCACHE', ");
改为
define( 'UNINSTALL_WPSUPERCACHE', '1′ );
4、打开网站根目录下wp-config.php,搜索 define( 'WP_CACHE', true );删除这段代码。
OK,彻底完成。
以上的方法是最安全的,我自己就是这样安全删掉的,没有任何副作用。如果有其他意外,还可以直接用ftp工具手工删掉相关文件和代码,以下是网络搜索到的方法。
1、删除%WordPress安装目录%/wp-config.php中define( 'WP_CACHE', true );这句话。
2、找到%WordPress安装目录%/wp-content/cache,删除该目录以及目录下所有文件
3、删除根目录下# BEGIN WPSuperCache到# END WPSuperCache之间所有的文字,包括这两行。
4、删除%WordPress安装目录%/wp-content目录下advanced-cache.php和wp-cache-config.php两个文件。
5、删除目录—>>>%WordPress安装目录%/wp-content/plugins/wp-super-cache
附录:
How to uninstall WP Super Cache
How to uninstall WP Super Cache
Almost all you have to do is deactivate the plugin on the plugins page. The plugin should clean up most of the files it created and modified, but it doesn't as yet remove the mod_rewrite rules from the .htaccess file. Look for the section in that file marked by SuperCache BEGIN and END tags. The plugin doesn't remove those because some people add the WordPress rules in that block too.
To manually uninstall:
-
Turn off caching on the plugin settings page and clear the cache.
-
Deactivate the plugin on the plugins page.
-
Remove the WP_CACHE define from wp-config.php. It looks like define( 'WP_CACHE', true );
-
Remove the Super Cache mod_rewrite rules from your .htaccess file.
-
Remove the files wp-content/advanced-cache.php and wp-content/wp-cache-config.php
-
Remove the directory wp-content/cache/
-
Remove the directory wp-super-cache from your plugins directory.