• I just released WP-Cache 1.0 after serveral weeks of developing and testing:

    https://mnm.uib.es/gallir/posts/2005/02/02/111/

    WP-Cache is extremely efficient WordPress hack a€“not a simple plugina€“ for page caching. It allows to serve hundred of times more pages per second, and to reduce the response time from several tenths of seconds to less than a millisecond.

Viewing 11 replies - 31 through 41 (of 41 total)
  • Should I actuall see anything in my ‘cache’ folder as mine is totally empty.

    Thanks

    I got 15,000 posts currently running on 1.5 (upgrading to 1.5.1 tonight), and I need to know which would be better for me:

    WP-cache or Staticize Reloaded ?

    Using Wp-Cache seems to throw off my stats, in either stattraq or AWstats…specifically page hits gets reduced by a wide margin (I normally register 600 hits/hr, now it shows about 80). Anyway to fix this?

    ANY code that runs dynamically on your page has to be modified so that it is called as part of the ‘static’ cached page. Note that such dynamic code can’t necessarily reference much ‘core’ wordpress variables, as many aren’t set-up when the caching plugin takes over…

    I can’t remember the methodology. one of the cache systems had both a ‘call this dynamic function’ wrapper and a ‘include this dynamic php file’ wrapper.

    Once you move to caching systems, you need to use stat tracking that doesn’t rely on internal php execution. One trick is to embed a php tracker faked into an IMG tag (which is how a lot of the phpAds, etc. services work). Or use an external service. ??

    On my 1.0-era site, I moved my CG-Referrer code to be before I start up my custom Staticize code, so that I get the referral tracking regardless of whether the page is delivered static or dynamic.

    -d

    so uh….”no”? ??

    I don’t use WP-Cache, I use a modded Staticize, so I don’t know what WP-Cache supports. Did you check the docs? There should be some method for embedding a dynamic call or function or something, to enable you to use specific functions. However, again, from what I recall of the cache handling code, it comes before any plugins, so the ‘plugins’ would have to be manually included and called for staticized pages to be tagged.

    Or, the stats handling needs to be ‘included’ via a side effect, like javascript, or as a faked IMG tag that actually calls a php script…

    So the answer is “yes, with a lot of caveats!”. ??

    -d

    Thanks for the info…it looks like trying to do this is beyond my scope, so I’m gonna let caching go for now.

    Due to recent troubles Ive been having with my server, I decided to install WP-Cache. It seems to be doing the trick! Thank god.

    However, I cant seem to figure out how to get dynamic functions to work. Im sure Im really just missing something easy, but Id love it someone could point it out to me. Here is the code (my search function) that Im trying to keep dynamic. Im calling it from within my sidebar.php file.

    <form style="padding: 0px; margin-top: 0px; margin-bottom: 0px;"
    id="searchform" method="get" action="<?php bloginfo(‘url’);
    ?>"> <input type="text" name="s" id="s"
    size="20" onfocus="this.value=”" value="<?php if
    (!$s) { $s = " -Search 4cr-"; } echo $s; ?>" /></form>

    Oh, and in case you need to see the info they gave in the readme on how to do this (which isnt clear enough to me):

    = How do I make certain parts of the page stay dynamic? =

    There are two ways to do this, you can have functions that say dynamic or include entire other files. To have a dynamic function in the cached PHP page use this syntax around the function:

    <!--mfunc function_name('parameter', 'another_parameter') -->
    <?php function_name('parameter', 'another_parameter') ?>
    <!--/mfunc-->

    The HTML comments around the mirrored PHP allow it to be executed in the static page. To include another file try this:

    <!--mclude file.php-->
    <?php include_once(ABSPATH . 'file.php'); ?>
    <!--/mclude-->

    Looks like LightPress might also do the job – https://www.lightpress.org/

    Best regards.

    Frank

    Yeah, but it’s a shame that there’s no explanation of what LightPress is or how to use it.

Viewing 11 replies - 31 through 41 (of 41 total)
  • The topic ‘WP-Cache’ is closed to new replies.