Store compiled file names in cache.

Only update the cache when files are regenerated (rather than on every
page request).
Merge pull request #2 from liip/compiled-files-cache

Store compiled file names in cache.