Thanks for letting me know. I see that making the homepage uncacheable is a workaround; I’ll do that.
Jason
-
☆ A M B ☆
- 318 Posts
I have a better workaround than making the homepage uncacheable, but it only works if your homepage can be served equivalently as a static HTML file.
Simply copy the HTML source code for the homepage to a text file, and call it index-static.html.
Then add this line to your .htaccess right before the friendly URL redirect
RewriteRule ^$ index-static.html
This rewrites (note that it’s a rewrite not a redirect, that’s important) requests for root to the static file, while still allowing MODx to serve requests for all other pages. Requests for root will load fast, and the rest of the site can be served fast from the cache.
Keep in mind that you’ll need to update index-static.html whenever you make changes that affect the content of the homepage.
By the way, I’m not actually seeing this bug. I implemented the above workaround because I can’t afford to have my homepage go down even for a few minutes, and its content very rarely changes anyway.
Interesting. How is this better than/substantially different from uncaching the homepage?
Jason
-
MODX Staff
- 10,725 Posts
This issue is resolved in 2.0.8-pl, which is now available BTW.
-
☆ A M B ☆
- 318 Posts
Do we have confirmation that this does in fact resolve the bug? Seems like it ought to, but sometimes the unexpected happens...