Store compiled file names in cache.

Only update the cache when files are regenerated (rather than on every
page request).