WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
Homepage cache file is generated but cannot be found. (7 posts)

  1. myotash
    Member
    Posted 1 year ago #

    Caching is working perfectly for all pages of the site other than the homepage. I've monitored the debug log and can see that the cache file is created successfully (and I've confirmed its created on disk), but when its reloaded wp-super-cache cannot find it and recreates it. See log output below:

    10:46:04 /blog/ supercache dir: /srv/www/www.xvpn.com/public_html/blog/wp-content/cache/supercache/www.xvpn.com/blog/
    10:46:04 /blog/ No wp-cache file exists. Must generate a new one.
    10:46:05 /blog/ In WP Cache Phase 2
    10:46:05 /blog/ Setting up WordPress actions
    10:46:05 /blog/ Created output buffer
    10:46:05 /blog/ Output buffer callback
    10:46:05 /blog/ Anonymous user detected. Only creating Supercache file.
    10:46:05 /blog/ Gzipping buffer.
    10:46:05 /blog/ Writing non-gzipped buffer to supercache file.
    10:46:05 /blog/ Writing gzipped buffer to supercache file.
    10:46:05 /blog/ Renamed temp supercache file to /srv/www/www.xvpn.com/public_html/blog/wp-content/cache/supercache/www.xvpn.com/blog/index.html
    10:46:05 /blog/ Renamed temp supercache gz file to /srv/www/www.xvpn.com/public_html/blog/wp-content/cache/supercache/www.xvpn.com/blog/index.html.gz
    10:46:05 /blog/ Writing gzip content headers. Sending buffer to browser
    10:46:05 /blog/ wp_cache_shutdown_callback: collecting meta data.
    10:46:05 /blog/ Did not write meta file: wp-cache-63f2700a2f8bd69e6109ef1fc90c1040.meta *1* *1* *1*
    10:46:06 /blog/page/2 supercache dir: /srv/www/www.xvpn.com/public_html/blog/wp-content/cache/supercache/www.xvpn.com/blog/page/2/
    10:46:06 /blog/page/2 Served page from supercache file using PHP.

    I've tried everything I can think of to resolve this including using the inotify package to monitor real-time file system activity to see what file name its looking for but it didn't help. Any assistance would be greatly appreciated.

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

  2. myotash
    Member
    Posted 1 year ago #

    Just to confirm, I'm using the PHP caching method (mod-rewrite is not compatible with my specific configuration with suPHP).

  3. myotash
    Member
    Posted 1 year ago #

    Another update. If I request the index.php file directly then it finds the cache file correctly and serves it.

    http://www.xvpn.com/public_html/blog/ <---- Can't find cache file
    http://www.xvpn.com/public_html/blog/index.php <----- Can find cache file

    In the first example I assume Apache is using the DirectoryIndex directive which leads it to index.php. But somehow wp-super-cache gets confused by this.

  4. myotash
    Member
    Posted 1 year ago #

    hmm.. I just cannot figure this one out. Is there any paid support available?

  5. Eric
    Member
    Posted 1 year ago #

    I am having the same problem. Without the explicit "index.php" the cached file is not being served. My front page is a static page, not a blog.

    Like @myotash I am using PHP caching.

    Anyone out there with an idea why this would be happening?

  6. myotash
    Member
    Posted 1 year ago #

    I have posted on multiple forums and can't find any explanation for this behaviour. I don't know where else to turn!

  7. getsited
    Member
    Posted 11 months ago #

    We use mod_rewrite caching but encountered a similar problem with the plugin not finding the cached home page when WordPress is installed in a sub-directory. Try updating line 726 in wp-cache.php from this:
    $home_path = parse_url( site_url() );
    to this:
    $home_path = parse_url( home_url() );

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.