Support » Plugins » WP Cache DOES work with WP 2.0x – Installation instructions here

  • bolonki

    (@bolonki)


    If your blog is blessed with a lot of traffic, you know it can be a curse. And if you are running WordPress 2.0x, you know that the built-in cache is not good enough to lessen the server’s load and that nasty email from your hosting provider.

    The solution is to try to install Gallir’s WP Cache plugin, but you may have seen it listed as ‘non working’ under WP 2.0x. Well, it DOES work, thank goodness, and here’s how to install it (I have compiled this different tips from different sources, this is simply what worked for me running WP 2.02).

    =================================

    Installing Gallir’s WP Cache under WordPress 2.02:

    1. Download the WP Cache 2.0.17 plugin here:
    http://mnm.uib.es/gallir/wp-cache-2/

    2. Upload to your plugins folder, usually wp-content/plugins/ and unzip the file, it will create a wp-content/plugins/wp-cache/ directory.

    3. If you have Compression turned on under Miscellaneous options, turn it off.

    4. Create wp-content/cachedirectory and make sure the web server can write in it (chmod to 777)

    5. Make wp-content directory writeable by the web server (chmod to 777).

    6. Add the following line to your wp-config.php` file:

    define(‘WP_CACHE’, true);

    Make sure you add the line in the middle of the file, otherwise it won’t execute.

    7. Copy wp-cache-phase1.php to advance-cache.php and place it in the wp-content folder.

    8. Change ob_end_clean to ob_end_flush in the wp-cache-phase2.php file.

    9. Go to “Options” administration menu, select “WP-Cache” from the submenu and enable cache.

    10. Check the cache is working by viewing the source of the page, the second reload should show at the bottom of the HTML code:

    <!– Dynamic Page Served (once) in 0.154 seconds –>
    <!– Cached page served by WP-Cache –>

    11. Chmod wp-content back to 755 for security.

    =============================================

    This excellent plugin by Gallir is a must for anybody with serious traffic to their site, even if you have great hardware on the server, a spike in traffic can bring Apache down very quickly.

    Let me know any omissions of improvements, I really don’t know anything about programming, etc, only a blogger really.

    Hope this helps.

Viewing 2 replies - 1 through 2 (of 2 total)
  • gornik321

    (@gornik321)

    Did the same thing to make it work on windows except the define(‘WP_CACHE’, true);. I had to change another thing in /wp-content/plugins/wp-cache/wp-cache.php. On line 450 there is a function called wp_cache_check_link witch uses a php function symlink that does not work on windows.
    To solve the problem I just entered a “return true” (without the quotes) on the first line of the function.

    Hope this helps

    P.S.: Got the info from Gallir’s site.

    Thank you. Excellent tutorial. Seems to work. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP Cache DOES work with WP 2.0x – Installation instructions here’ is closed to new replies.