WordPress.org

Ready to get started?Download WordPress

Forums

WP-Cache (42 posts)

  1. angsuman
    Member
    Posted 9 years ago #

    Doesn't work for me. Gives me a blank page - http://blog.taragana.com/index.php/archive/no-caching-for-me/

  2. elyonline
    Member
    Posted 9 years ago #

    Should I actuall see anything in my 'cache' folder as mine is totally empty.

    Thanks

  3. absalom
    Member
    Posted 9 years ago #

    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 ?

  4. Arlo
    Member
    Posted 9 years ago #

    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?

  5. davidchait
    Member
    Posted 9 years ago #

    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

  6. Arlo
    Member
    Posted 9 years ago #

    so uh...."no"? :)

  7. davidchait
    Member
    Posted 9 years ago #

    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

  8. Arlo
    Member
    Posted 9 years ago #

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

  9. nluckett
    Member
    Posted 9 years ago #

    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>

  10. nluckett
    Member
    Posted 9 years ago #

    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-->

  11. naudefj2
    Member
    Posted 9 years ago #

    Looks like LightPress might also do the job - http://www.lightpress.org/

    Best regards.

    Frank

  12. iamPariah
    Member
    Posted 8 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic