vesselinv / fuel-sprockets

Asset management and asset bundling package for FuelPHP
MIT License
16 stars 7 forks source link

Fix SprocketsFileNotFoundException from empty file and recompile empty cache files #7

Closed crankeye closed 10 years ago

crankeye commented 10 years ago

If the cache file exists but is empty a SprocketsFileNotFoundException will be thrown. file_get_contents will return an empty string which will evaluate false.

Also if a cache file is empty it should be recompiled.