canton7 / fuelphp-casset

Better asset management library for fuelphp (with minification!)
MIT License
103 stars 29 forks source link

Add a "cache_retrieve" path #35

Closed younes0 closed 12 years ago

younes0 commented 12 years ago

Add a "cache_retrieve" path option to override cache_path when it comes to retrieve (and not store) combined/minifed files.

This is a contribution enquiry and here's the usecase: I'd like to store combined files in my "app\temp\combined" and not app\public\combined. In apache, "www.mysite.com/combined" is a alias refering to "app\temp\combined"

canton7 commented 12 years ago

You can currently do this with the filepath callback (I believe), although it is a bit of a hack.

I probably won't have time to implement this until the weekend. Unless, of course, you feel like submitting a patch :) Relevant lines are 803, 905, 928, plus the stuff in files_to_render. We also need to decide whether the getfilepath* functions return the original or 'rewritten' path.