Not sure if this applies to this thread but for what it's worth I had a Rackspace Cloud Sites MODX site sh!it the proverbial bed today and it turned out that .htaccess became corrupt (or something). When I created a fresh copy of the file all seemed to go back to normal. RS support suggested optimizing the tables in the DB too and was honest by saying that Cloud Sites doesn't play well with MODX—I think he mentioned they're trying to solve it.
Glad it was a simple fix.
What drives me crazy is that it used to work.. and work pretty well. If it never worked well or at all .. fine shame on us.
So good news. Migrating to php 5.4 on cloud sites with the latest MODx is really snappy.. I'm seeing 600ms time to first byte for a MANAGER page load. on php 5.3 it was like 1500 - 2000ms sometimes.
So far no front end issues. Either Rackspace figured it out, or the php 5.4 nodes aren't too full yet.
-
MODX Staff
- 10,725 Posts
The cache is supposed to be utilizing a technique that always opens the file in append mode, seeks to the beginning of the file and truncates it before writing. It uses flock (or an alternative mechanism if configured) for ensuring the file is locked during this operation, but if that fails to actually get a meaningful lock in the environment, all bets are off.
I'll spend some time revisiting this approach in detail this week and see if I can find a better solution to cache file writing that avoids this problem in the problematic environments.
I should add, I'm not having any more issues currently. @mor-mark you are? on the php 5.4 nodes?
@mor-mark Ah ok good to know, had me worried. Rackspace Cloud Sites has no SSH access, some quick googling didn't turn up any apache benchmarking information for cloud sites.
Possibly to avoid confusion maybe link a new thread from here? Maybe an admin would need to do it?