WP Super Cache
Case sensitivity in cache directory? (3 posts)

  1. kwdavids
    Posted 5 years ago #

    For some historical reason, the directory where my blog lives is named MYBLOGNAME.ORG (upper case). When I look in the wp-content/cache/supercache sub-directory, it is empty (the meta directory has like 7 files in it). When I generate Super Cache statistics, it lists a few pages for WP Cache, but zero for Super Cache.

    Now, I see that in the host file system there is ANOTHER directory named myblogname.org (lower case), and ALL it has under it is a wp-content/cache/supercache/www.myblogname.org directory that basically a cached copy of my whole blog.

    So, is something wrong? Should I change something? Should the Super Cache statistics show the 1100 files in the blog instead of zero?

  2. kwdavids
    Posted 5 years ago #

    I looked at the mod_rewrite rules, and see

    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f
    RewriteRule ^(.*) "/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz" [L]

    That's clearly not going to find the cached files which are not under the DOCUMENT_ROOT, but under a lower-cased version of it.

    So the question is whether I should hack the mod_rewrite rules to find where WP Super Cache put the cached pages, or fix WP Super Cache to put them in the right place to begin with.

  3. Donncha O Caoimh
    Plugin Author

    Posted 5 years ago #

    Grab http://svn.wp-plugins.org/wp-super-cache/trunk/wp-cache-phase1.php and copy in to your plugins/wp-super-cache/ folder and clear the cache. Does that fix the problem? I fixed a case problem just after the last release that may affect you.

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