Closed kogir closed 12 years ago
I'm trialing support for this on my own site, based on 023a03e834fe90e7215ac2bd30072871ce558a6c It's hard to be sure it's safe, so I won't close it until I've developed better tests for it.
Fixed in 1e161f2d950efe425acdfeac1fc16f3eef5e876d
Before the most recent changes the SassCompiler would sometimes crash during initialization. If this happened while all other requests were waiting for the result of the compilation, it was bad news for everyone.
If multiple requests come in for a non-cached resource, start generation on the first request and hold all other requests for the same resource until they can be served from the new, cached copy.
Right now this is most noticeable when three or four Sass/SCSS requests for the same thing come in concurrently, and they all spin up Ruby runtimes at the same time.