We have a weird issue with our CE Cache setup. We’re running the following environment:
Web Server: Apache 2.4
PHP version: 5.5.9-1ubuntu4.27
EE version: v2.10.1
CE Cache version: 1.10.1
Our caching works fine for all pages except the home page. We are using the htaccess rules from here:
With some troubleshooting I found that the DirectoryIndex parameter makes a difference. If we set the following:
Caching for ALL pages (including home page!) works fine. However, if we delete the cache, the home page gives a forbidden error (i.e. no longer talks to ExpressionEngine, presumably because index.php isn’t being called). Oddly it seems that non-homepage pages still regenerate their pages.
If we change it to the following:
DirectoryIndex index.html index.php
Caching for ALL pages EXCEPT the homepage works fine, with the homepage going direct to ExpressionEngine.
We’ve spent a ton of time on this issue, and we’re at a loss as to why its behaving like this.
As an aside, we’ve found that within the EE Admin, if we try to browse individual cache pages, we get the following error:
An unexpected response was received:
Not sure if it’s related at all, but thought I’d include it. Deleting the entire cache still works - we just can’t browse individual cache pages via the UI.