post-page

Finished some preliminary work on WordPress Caching

4
responses
by
 
on
February 15th, 2004
in
WordPress Hack
heading
heading
heading
4
Responses

 

Comments

  1. Lennart says:

    Hi, I was thinking the same thing a couple of times already. For my webpages I use PEARs CacheLite. But you don’t need to change wordpress to dump its output into variables, use phps’ caching functions. Here is an example of how I do it. This is the the top and the bottom of a webpage:


    $cache"bands";
    $cache = new Cache_Lite($cacheOptions);
    if ($data = $cache->get($cacheId)) {
    die($data);
    }
    ob_start();

    // put whatever php/html here

    $cache->save(ob_get_contents());
    ob_flush();

    Hope this helps…

  2. Lennart says:

    Oh, a wordpress bug striked in my post above. WordPress always removes “id equals to” code from comments. The first line should read

    $ c o d e I d = ' b a n d s ';

  3. Mark says:

    Interesting. I should look into their version. However, your hack would require a new application to be installed. I guess I am trying to do this inside wordpress. Though I am sure there are lots of lessons to be learnt from cache_Lite!
    Thanks for the suggestion!

  4. till (1 comments.) says:

    hey, is your cache plugin available?



Obviously Powered by WordPress. © 2003-2013

page counter
css.php