Updated with better error handling to suppress potential empty concat/minify caches, and log out to error_log when there is an issue generating the cache.