WP Super Cache
PHP caching issues (2 posts)

  1. FolioVision
    Posted 4 years ago #

    Hello Donncha,

    when we use "Use PHP to serve cache files.", the homepage is not cached. The cache file is generated, but it's not served, it just says "No wp-cache file exists. Must generate a new one." in the debug file.

    I was looking into the plugin and found that the site permalink structure is first analyzed and if it ends with a slash, then only requests ending with slash are cached and vice versa. So if something does not obey the permalink rules, then it's not cached when using the PHP mode of serving cache. This is in in wp-cache-phase1.php.

    The problem is, that our site uses permalink structure like /%year%/%monthnum%/%postname%.html which does not end with slash. So the wp-cache.php file sets wp_cache_slash_check to zero and that affects if the cached file is served in wp-cache-phase1.php. And since the homepage address ends with slash, it's not served from cached.

    It's a weird issue, could you please have a look into fixing this?



  2. FolioVision
    Posted 4 years ago #

    Hello Donncha,

    I tested this with the most recent development version to make sure we are both on the same page. I was not able to replicate the problem, did you fixed this?

    We had more issues with PHP caching, like when you switched from mod_rewrite to PHP caching, these files were not updated:
    1. The .htaccess file is not updated (the rewrite rules remain!)
    2. The advanced-cache.php and wp-cache-config.php

    So we had to remove the two PHP files and configure the plugin again. Only then the PHP caching started to work. I'm trying this now and I can't see the issue anymore. I will need to have another look next time I see this issue.

    However I can see the issue with .htaccess. I understand that the .htaccess rules should not interfere with what's in served using PHP, but it's a bit confusing. If somebody wants PHP caching, then that's what he should get I guess.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Super Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.