WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
Change of blog address creating cache errors (18 posts)

  1. Kevin
    Member
    Posted 2 years ago #

    I changed my blog address in WP a few weeks ago. From http://www.blog.com to blog.com. Today I was looking at the debug from wp-super-cache, and I saw that whenever someone looks at http://www.blog.com/post and supercache errors. It looks in the cache folder for /www.blog.com/ and fails.

    WP redirects to the appropriate file and the user gets the page, but supercache does not generate a cache file and just lets the dynamic page be loaded.

    is there any way that this can be solved or worked out so that cached files are served from old links, or is this something that i just have to live with?

    http://wordpress.org/extend/plugins/wp-super-cache/

  2. Kevin
    Member
    Posted 2 years ago #

    Here is an example of the debug log entries during a failure.

    03:39:06 /category/1/ supercache dir: /homepages/blog/wp-content/cache/supercache/www.blog.com/category/1/
    03:39:06 /category/1/ No wp-cache file exists. Must generate a new one.
    03:39:06 /category/1/ In WP Cache Phase 2
    03:39:06 /category/1/ Setting up WordPress actions
    03:39:06 /category/1/ Created output buffer
    03:39:07 /category/1/ Output buffer callback
    03:39:07 /category/1/ Buffer is blank. Output buffer may have been corrupted by another plugin or this is a redirected URL. Look for text 'ob_start' in the files of your plugins directory.
    03:39:07 /category/1/ No closing html tag. Not caching.
    03:39:07 /category/1/ wp_cache_shutdown_callback: collecting meta data.

  3. James Revillini
    Member
    Posted 2 years ago #

    03:39:07 /category/1/ Buffer is blank. Output buffer may have been corrupted by another plugin or this is a redirected URL. Look for text 'ob_start' in the files of your plugins directory.
    03:39:07 /category/1/ No closing html tag. Not caching.

    This sounds similar to http://bit.ly/JGFKrt

    Can you deactivate your other plugins and see if it's still doing this?

  4. James Revillini
    Member
    Posted 2 years ago #

    Oh and I meant to ask you what you used to update the database with the new URL in all places. I always use a plugin called WP Move. I don't think it will make a difference but maybe.

  5. Kevin
    Member
    Posted 2 years ago #

    I have not tried deactivating all my other plugins. I will have to find a time to try this as my site is very plugin dependent.

    As for change the URLs, I did this through he WP General settings page.

  6. Kevin
    Member
    Posted 2 years ago #

    OK, i just deactivated all my other plugins and re-tested. according to the debug log, the error still existed...

    17:40:38 /otp/ supercache dir: /homepages/20/blog/htdocs/blog/wp-content/cache/supercache/www.blog.com/otp/
    17:40:38 /otp/ No wp-cache file exists. Must generate a new one.
    17:40:38 /otp/ In WP Cache Phase 2
    17:40:38 /otp/ Setting up WordPress actions
    17:40:38 /otp/ Created output buffer
    17:40:38 /otp/ Output buffer callback
    17:40:38 /otp/ Buffer is blank. Output buffer may have been corrupted by another plugin or this is a redirected URL. Look for text 'ob_start' in the files of your plugins directory.
    17:40:38 /otp/ No closing html tag. Not caching.
    17:40:38 /otp/ wp_cache_shutdown_callback: collecting meta data.

    although looking at the pages, i WAS getting a cached page and here is the snippet from the bottom of the HTML
    <!-- Dynamic page generated in 2.301 seconds. -->
    <!-- Cached page generated by WP-Super-Cache on 2012-04-18 09:39:46 -->
    <!-- Compression = gzip -->

  7. James Revillini
    Member
    Posted 2 years ago #

    You get cached pages (according to HTML comments) even when all your plugins are active?

  8. Kevin
    Member
    Posted 2 years ago #

    Do you mean inactive?
    I got a cached page when all my plugins BUT SuperCache were DEactivated

  9. James Revillini
    Member
    Posted 2 years ago #

    No, I mean when you reactivate them, are you still seeing the HTML comments that tell you it's serving a cached page?

  10. Kevin
    Member
    Posted 2 years ago #

    I just went and checked and yes, i'm getting a cached page
    <!-- Dynamic page generated in 2.169 seconds. -->
    <!-- Cached page generated by WP-Super-Cache on 2012-04-16 20:27:54 -->
    <!-- Compression = gzip -->

    I did not deactivate and activate again. (only earlier today did I do that)

  11. James Revillini
    Member
    Posted 2 years ago #

    And this is on the new domain? (without www?) If so, then things are working.

  12. Kevin
    Member
    Posted 2 years ago #

    OK, I guess my next question is this...
    Why does the debug show an error?...

    20:34:02 / supercache dir: /homepages/20/blog/htdocs/blog/wp-content/cache/supercache/www.blog.com/
    20:34:02 / No wp-cache file exists. Must generate a new one.
    20:34:02 / In WP Cache Phase 2
    20:34:02 / Setting up WordPress actions
    20:34:02 / Created output buffer
    20:34:03 / Output buffer callback
    20:34:03 / Buffer is blank. Output buffer may have been corrupted by another plugin or this is a redirected URL. Look for text 'ob_start' in the files of your plugins directory.
    20:34:03 / No closing html tag. Not caching.
    20:34:03 / wp_cache_shutdown_callback: collecting meta data.

    or should I just not worry about it since it seems to be working?

  13. James Revillini
    Member
    Posted 2 years ago #

    I could be wrong but I think it's a bug in the error logging. I wouldn't worry as long as it's definitely serving you those cache files. At least this helps Donncha (or any other developers) prioritize which bugs get fixed first.

  14. Kevin
    Member
    Posted 2 years ago #

    OK, sounds good. Is there a method for submitting bugs or is this forum the appropriate way?

  15. James Revillini
    Member
    Posted 2 years ago #

    This is it. And even though this post has a bunch of back and forth, it has not been marked resolved so I'm assuming the head dev will still read thru it.

    Support queries and requests should be made through the Super Cache forum.

    source: http://ocaoimh.ie/wp-super-cache/

  16. Donncha O Caoimh
    Member
    Plugin Author

    Posted 2 years ago #

    Have you added a .htaccess rule redirecting visitors from www to non-www?

    WP Super Cache doesn't cache redirects which I think is why the buffer is blank - WP is redirecting and not displaying anything.

  17. James Revillini
    Member
    Posted 2 years ago #

    @Donncha I could be wrong but wouldn't .htaccess catch and prevent PHP execution until it was processing on the destination domain?

  18. Donncha O Caoimh
    Member
    Plugin Author

    Posted 2 years ago #

    No, a cache file shouldn't exist for the domain that isn't in use.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic