Hi,
I’m currently running MODx Evolution (rev 6066) with friendly URLs turned on. I have the MODx codebase stored in Subversion (SVN), with a deployment script which takes the latest version of the code from SVN, deploys it to the server and puts it live.
Stored in assets/cache in SVN are only the following files: index.html, siteCache.idx.php, sitePublishing.idx.php and the rss folder.
MODx is being served by Nginx using rewrite rules to correctly direct traffic to the MODx front controller.
My problem then is this: whenever I do an automated deploy from SVN, the front-end URLs break: accessing any content URL shows me the standard Nginx "ERROR: Too many forward attempts!" error message. To fix this, I have to log into MODx’s /manager back-end and either press Save on any resource page or toggle a feature like Friendly URLs off then on again. So it feels like the problem and fix may be caching related?
I guess my main question is: is there something I’m storing or not storing in SVN that is causing this problem? If not, and this is a feature of MODx (perhaps something to-do with cache rebuild), then is there any way I can automate the fix in my deployment script (e.g. a MODx page I could wget)?
Interested to hear your thoughts, thanks in advance for any help you can give.
Alex