Forums

[Plugin: WP Super Cache] Pages are regenerated each time (17 posts)

  1. Malaiac
    Member
    Posted 5 months ago #

    PHP Speedy and WP Super Cache are installed and setup ok.
    However, the pages are regenerated each times : I got these in the end of the html :
    <!-- Dynamic page generated in 0.821 seconds. -->
    <!-- Cached page generated by WP-Super-Cache on 2009-06-16 10:28:29 -->

    then :
    <!-- Dynamic page generated in 0.966 seconds. -->
    <!-- Cached page generated by WP-Super-Cache on 2009-06-16 10:31:49 -->

    then :
    <!-- Dynamic page generated in 1.014 seconds. -->
    <!-- Cached page generated by WP-Super-Cache on 2009-06-16 10:32:08 -->

    the refresh is done via http://web-sniffer.net/?url=http://www.malaiac.net/&submit=Submit&http=1.1&gzip=yes&type=GET&uak=0 (web sniffer), so no logged in users issues should arise (I doubt web sniffer ever made a comment on my blog)

    Same thing if I crawl my blog with wget :
    (example from a tag page :)
    <!-- Dynamic page generated in 1.998 seconds. -->
    <!-- Cached page generated by WP-Super-Cache on 2009-06-16 10:35:00 -->

    <!-- Dynamic page generated in 0.989 seconds. -->
    <!-- Cached page generated by WP-Super-Cache on 2009-06-16 10:35:32 -->

    WP-Cache (67.45KB)
    2 Cached Pages
    0 Expired Pages

    WP-Super-Cache (505.10KB)
    12 Cached Pages
    0 Expired Pages

    What do you think ?

  2. donncha
    Member
    Posted 5 months ago #

    Try without PHP Speedy.
    Try the development version. Make sure you delete the supercache rules in your .htaccess as the updated plugin may generate new ones.

    Does either of those help?

  3. Malaiac
    Member
    Posted 5 months ago #

    without PHP Speedy : no change
    uninstall, install the dev version, regenerate rules : no change
    :(

    could you point me to the function that decides whether or not to refresh the cache ? I could work on that then.

  4. donncha
    Member
    Posted 5 months ago #

    It's not as simple as that because I don't think the files are being cached in the first place. Look through the Troubleshooting section in the readme.txt, that may help.

    You could also have another plugin that's using the output buffer and not closing it correctly. What plugins do you have?
    Search your plugins folder for the text "ob_start" to find any that use that buffer.

  5. Malaiac
    Member
    Posted 5 months ago #

    seems the cache file are generated okay. I launched a wget -m on my site, and soon files and folders started to appear in wp-content/cache/supercache/ (files like 122-my-post.htm/index.htm , tag/css/index.htm, etc.)

    headspace, yarpp, akimset, allinoneSEO had ob_start in them.
    I unactivated them one by one, and loaded the same page twice in http://www.bout.fr/?url=http://www.malaiac.net/&mode=headers to check the wp super cache code
    headspace off : no change
    yarpp off : no change
    allinone off : no change

    all plugins off but wp super cache : no change > so it's not a plugin issue

    still got the same :
    <!-- Dynamic page generated in 0.932 seconds. -->
    <!-- Cached page generated by WP-Super-Cache on 2009-06-17 10:51:22 -->

    <!-- Dynamic page generated in 0.932 seconds. -->
    <!-- Cached page generated by WP-Super-Cache on 2009-06-17 10:51:40 -->

    sidenote : I have this error when activating wp super cache :
    Warning: gzinflate() [function.gzinflate]: data error in /<path>/wp-includes/http.php on line 1787
    Warning: gzuncompress() [function.gzuncompress]: data error in /<path>/wp-includes/http.php on line 1792

  6. Malaiac
    Member
    Posted 5 months ago #

    and btw, it's a brand new install of wp 2.8 (empty folder, install, import)

  7. CharlieHamu
    Member
    Posted 4 months ago #

    I am experiencing the same behavior. Super-Cache is saving pages in its cache, but then generating new pages for each visit. I've taken similar precautions about not being logged in as admin.

    I'm also on 2.8. I don't know when this started, though. I know it worked distantly in the past.

  8. Otto42
    Moderator
    Posted 4 months ago #

    I can't reproduce this. I'm running the WP 2.8.1b2 nightly and the latest WP-Super-Cache. My front page consistently gives me this (when I'm an "anonymous" user):

    <!-- Dynamic page generated in 2.963 seconds. -->
    <!-- Cached page generated by WP-Super-Cache on 2009-07-07 10:49:36 -->
    <!-- Compression = gzip -->

    Doesn't change on reloads.

  9. donncha
    Member
    Posted 4 months ago #

    CharlieHamu - post your .htaccess rules to http://pastebin.com/ and post the url you get here.

  10. CharlieHamu
    Member
    Posted 4 months ago #

  11. donncha
    Member
    Posted 4 months ago #

    Charlie - looks good. Can you try the development version off the download page? You'll have to delete the SuperCache rules in your .htaccess as the plugin will create them again and possibly write slightly different ones.

    That would be the code between the BEGIN and END WPSuperCache lines.

  12. CharlieHamu
    Member
    Posted 4 months ago #

    Yes, thank you. I'll do that and report the results.

  13. CharlieHamu
    Member
    Posted 4 months ago #

    Yes, all fixed. Thanks so much.

    Many things changed in the .htaccess file, but I reckon a key change was on the lines highlighted in http://pastebin.com/m13ce7746

    Namely, I had moved wp-content to wordpress/wp-content but the .htaccess file was not updated to reflect this.

    Thanks again.

  14. smarx80
    Member
    Posted 4 months ago #

    Hi,
    for me the problem still persist also with devel version of the plugin, with wordpress 2.7 or 2.8.

    Wp-super-cache successfully creates the pages in supercache, but on every access updates them.

    The last version of the plugin that seems to work correctly is the 0.8.8.

  15. munblog
    Member
    Posted 1 month ago #

    Hi there, I have the same problem as mentioned by Malaiac.

    WP Super Cache are installed and setup ok.

    However, the pages are regenerated each times.

    I am using WP 2.8.4 and WP Super Cache 0.9.7

    I am using following plugins:
    - Add Meta Tags
    - Adsense-Deluxe
    - Akismet
    - Angsuman's Translator Plugin Gold
    - Batch image upload
    - Dagon Design Sitemap Generator
    - Exec-PHP
    - Google XML Sitemaps
    - Highligh Author Comments
    - Optimal Title
    - Ozh' Better Feed
    - Related Posts
    - SGR Clean Archives
    - Subcribe To Comments
    - Wordpress.com Stats
    - Wordpress Backup
    - WP-ContactForm: Akismet Edition
    - WP-EMail
    - WP-PageNavi
    - WP Super Cache

  16. linuxed
    Member
    Posted 3 weeks ago #

    I have the exact same issue. I am using the development base. The files are generated properly in the supercache, the problem is they are generated every time a page is requested and they are never served up, just constantly regenerated.

    What information do you need to help me out here? It seems like the problem must lie in the rewrite rules in .htaccess, but as far as I can tell it looks good. How does the software make the decision as to whether or not to serve the cached copy?

  17. donncha
    Member
    Posted 3 weeks ago #

    See my post about the latest release. http://ocaoimh.ie/wp-super-cache-097/

    You probably need to regenerate the rewrite rules. Or just use the plugin in half-on mode.

Reply

You must log in to post.

About this Topic