Plugin Directory

WP Super Cache

How to uninstall WP Super Cache

Edit the file uninstall.php in your plugins/wp-super-cache/ directory and set UNINSTALL_WPSUPERCACHE to a non blank value.

    define( 'UNINSTALL_WPSUPERCACHE', '1' );

Open your browser and load wp-content/plugins/wp-super-cache/uninstall.php directly. You must be logged in, and you must confirm the action. If you do not delete the plugin immediately, after the script runs, please comment out the define() above to stop someone else running it.

To manually uninstall:

  1. Remove the WP_CACHE define from wp-config.php. It looks like define( 'WP_CACHE', true );
  2. Clear the cache in the backend page and then deactivate the plugin on the plugins page.
  3. Remove the Super Cache mod_rewrite rules from your .htaccess file.
  4. Remove the files wp-content/advanced-cache.php and wp-content/wp-cache-config.php
  5. Remove the directory wp-content/cache/
  6. Remove the directory wp-super-cache from your plugins directory.

If all else fails and your site is broken

  1. Remove the WP_CACHE define from wp-config.php. It looks like define( 'WP_CACHE', true );
  2. Remove the rules (see above) that the plugin wrote to the .htaccess file in your root directory.
  3. Delete the wp-super-cache folder in the plugins folder.
  4. Optionally delete advanced-cache.php, wp-cache-config.php and the cache folder in wp-content/.

Custom Caching

It is now possible to hook into the caching process using the add_cacheaction() function.

Three hooks are available:

  1. 'wpcachegetcookiesvalues' - modify the key used by WP Cache.
  2. 'add_cacheaction' - runs in phase2. Allows a plugin to add WordPress hooks.
  3. 'cacheadminpage' - runs in the admin page. Use it to modify that page, perhaps by adding new configuration options.

There is one regular WordPress filter too. Use the "docreatesupercache" filter to customize the checks made before caching. The filter accepts one parameter. The output of WP-Cache's wpcachegetcookies_values() function.

See plugins/searchengine.php as an example I use for my No Adverts for Friends

Links

WP Widget Cache is another caching plugin for WordPress. This plugin caches the output of widgets and may significantly speed up dynamic page generation times.

Updates

Updates to the plugin will be posted here, to Holy Shmoly! and the WP Super Cache homepage will always link to the newest version.

Thanks

I would sincerely like to thank John Pozadzides for giving me the idea for this, for writing the "How it works" section and for testing the plugin through 2 front page appearances on digg.com

Thanks to James Farmer and Andrew Billits of Edu Blogs fame who helped me make this more WordPress MU friendly.

Translators who did a great job converting the text of the plugin to their native language. Thank you! Gianni Diurno (Italian) Omi (Spanish)

Download

FYI

Compatibility beta

Your Setup

Log in to vote.

The Consensus (8 reporting)

100%
0,1,0
100,1,1
100,1,1
0,1,0 0,1,0 100,1,1 100,6,6
0,1,0 0,1,0 96,51,49 100,2,2
100,9,9 100,8,8
80,5,4

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(393 ratings)