neilime / zf2-assets-bundle

AssetsBundle is a module for Zend Framework 2 allowing asset managment (bundling & caching)
https://neilime.github.io/zf2-assets-bundle/
MIT License
33 stars 20 forks source link

Removing the cache dir when in production #26

Open dmregister opened 10 years ago

dmregister commented 10 years ago

I recently started using the module and think it is great.

Although I do have one question. Why is it necessary to have the cache dir when in production mode? For instance, I have the cache url set to our cdn cname and want to remove all assets from the production server, but get an error when the cache dir is not created.

I understand that even in production mode it needs to create cache files when necessary, but if your cacheUrl has a different host it would be nice to skip the check for the local files. I would expect it to just error if it cannot find the file and not create/check if it exists.

I will be happy to implement this feature, just wanted to open this issue in case I am missing something that is already implemented.

Thanks. -David

neilime commented 10 years ago

You request is right, and I will accept your pull request to add this feature