im-richard / Scaffold

Extend, combine and compress CSS
http://github.com/IAMRichardT/Scaffold/wiki
161 stars 19 forks source link

in_production + force_recache + Many Users = No CSS? #22

Closed gbirke closed 14 years ago

gbirke commented 14 years ago

When our production system was used heavily, some users got empty css files. Looking into the config, I found that in_production was set to false and force_recache was set to true. I have reversed the setting and I'm hoping now that problems will go away.

I'm assuming that with my original settings the cache files were deleted while another process was reading them. Can anyone confirm that?

Maybe it would be good to put a big warning in the description for in_production. Or to implement a file locking mechanism for the File cache class.

anthonyshort commented 14 years ago

I'm assuming you're using the older version of Scaffold. Give the latest version a go and see if you're still having trouble.

gbirke commented 14 years ago

Yes, I was using the old version. I tested the new version but did not like it - the standalone version lacked some features that were present in the old version and that have since moved to SASS. I did not want to install ruby plus rubygems just for CSS. In the end I have moved on to a PHP port of SASS, http://code.google.com/p/phamlp/ So you can close this bug now :)