kriswallsmith/assetic — pull request #696 by hoyes (2014-12-27 20:27:48+00:00)
Title: Removed asset load() from ScssphpFilter::getChildren

The ScssphpFilter currently does $child->load(), in getChildren(), which is causing a severe slow-down in our set-up (AsseticBu=ndle/Symfony), because it causes the whole Foundation library (which is included via an CSS import statement) to recompile on each page load, even if the base asset is being loaded from the cache.

I have replaced $asset->load() with $asset->ensureFilter($this). I have not studied how Assetic works in depth, but this seems to be more similar to how the Less and Lessphp getChildren() methods work so I wondered whether this would be more appropriate.