Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have WP Super Cache working perfectly on all pages of my blog except for the homepage. I'm using the PHP caching method (mod-rewrite is not compatible with my specific configuration with suPHP).

I've monitored the debug log and cache folder and can see that the cache file is created successfully, but when its reloaded wp-super-cache cannot find it and recreates it. A big clue seem to be that if I load the index.php file directly it works i.e.

www.site.com/blog/ <--- Cannot find cache file

www.site.com/blog/index.php <--- Able to find cache file (caching works!)

Im using the following permalink structure;

www.site.com/blog/%postname%

The .htaccess file is standard for the permalink structure

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>

I'm using the following DirectoryIndex directive in my virtual machine config.

DirectoryIndex index.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.

share|improve this question
add comment

migrated from serverfault.com Feb 27 '13 at 14:37

This question came from our site for professional system and network administrators.

1 Answer

Check that the path in your .htaccess rules matches where the supercache directory is. You may have to hardcode it. Or use the plugin in PHP or legacy caching mode.

share|improve this answer
    
I am using it in PHP mode as I said in the first sentence.Thanks. –  Michelle Mar 9 '13 at 17:38
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.