FriendsOfSymfony / FOSHttpCache

Integrate your PHP application with your HTTP caching proxy

Home Page:https://foshttpcache.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Version 2.5.3 breaks console application

leofeyer opened this issue · comments

The new ProxyUnreachableException exception which has been added in 7ca3f9e yesterday breaks my console application. I think it is fine not to have an HTTP cache on the command line, therefore this case needs to be handled differently IMHO.

Imho that's not a bug of FOSHttpCache. Invalidation should just not happen in this case. I mean you now get an exception but before you should have gotten a on a null object error because it was always null 😄

ah, i think i see the problem. before, we did a loop. if there are 0 elements, the loop would never try to call anything on null. i think that exception should only be thrown if there are > 0 invalidation messages to be sent. I will make a fix.

Thank you @dbu.

fixed in 2.5.4

Wow, you are fast. 👍 Thanks a lot!