1. Invalidate the cache on a very busy site (100+ req/s)
2. The first request will minify the files and re-save the cache (hey,
great).
3. If this takes a second, 99 other requests will also trigger calls to
minify the file (potentially bad).
Minify's cache system should use a lock to allow only the first request to
rebuild the cache, while serving the stale resource in the meantime. At
the proxy level, Squid calls this "Collapsed Forwarding". http://tr.im/q6DO
I have a rough PHP implementation I can borrow from here: http://
code.google.com/p/mrclay/source/browse/trunk/php/MrClay/CachedFunction.php
Original issue reported on code.google.com by mrclay....@gmail.com on 29 Jun 2009 at 2:25
Original issue reported on code.google.com by
mrclay....@gmail.com
on 29 Jun 2009 at 2:25