Caching Assetic Asset Collections

Recently I was working with Assetic for combining and minifying CSS and JS files but ran into an issue with regards to caching the created asset collection. The resulting minified file was being rewritten on every page load which was no good at all.

TL;DR: Get the asset collection's "last modified" property and compare it to the written minified file to determine if it needs updating.

Subscribe to RSS - PHP