Support » Plugins and Hacks » WP Super Cache » [Plugin: WP Super Cache] Need for a clarification with Supercache, please ?

[Plugin: WP Super Cache] Need for a clarification with Supercache, please ?

  • Hello, I’m trying to find a way to prevent supercache from caching a <?php random_posts(); ?> function call in my sidebar.
    With hope to make the plugin cache pages that would still call the php plugin once a visitor calls them).

    In this regard, I have noticed a section of the plugin’s “readme” file… However, to be frank, I am not sure I properly understood it ๐Ÿ™

    In http://wordpress.org/extend/plugins/wp-super-cache/faq/ , in the “
    How do I make certain parts of the page stay dynamic?” section, there is this introduction :
    ยซ WP Super Cache retains the dynamic loading code of WP Cache but only works in legacy caching mode. ยป

    Does that mean we can exclude some code to be cached only in Legacy caching mode ?
    If so, since I’m using mode_rewrite, would that mean it’s impossible to avoid caching the output of my <?php random_posts(); ?> call ?

    Thank you very much if you can answer me, I’ll be grateful !

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Donncha O Caoimh


    You need to use legacy caching mode. It works very well but you can’t cache quite as many files as with the other modes because of the way it works.See if you can convert the dynamic part of your page to Javascript first!

    I guess I’ll have to try the legacy caching mode, then !

    Thank you very much for all your time and help, Donncha, I’m very grateful ๐Ÿ™‚

    Haha, it’s interesting !
    I had not planned to make a new response, and yet, here I am. I don’t know if I must call this a bug report, a call for help (after all, in the end, “it works” !), or an experience report. Donncha, if the situation interests you and you want me to beta-test, free free to ask, otherwise, I’ll let my situation as is (“it works”, that’s what matters.)

    I had unavoidable T_String errors with Legacy mode and this code addition in my sidebar (with the growing old Andreas theme, not the revised version of october 2010) :

    With zip compression ON, it was another error message, but turning it off didn’t solve the problem.

    So, I switched back from Legacy to Mod_rewrite

    And, unexpectedly, the random post function STILL works ! I double-checked, even with a browser that has never been used to log into my blog, even with the footer source code indicating a cached page is served, the random_posts function is actually called afresh every time !

    In the end, “it works”, I suppose this is the most important thing, when it comes to that.

    Plugin Author Donncha O Caoimh


    I doubt it’s caching if the random post is changing. You’re best bet is probably using javascript, and if you’re really worried about performance you’ll have to provide some sort of caching in the random post function too.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WP Super Cache] Need for a clarification with Supercache, please ?’ is closed to new replies.
Skip to toolbar