Closed toitzi closed 3 years ago
Yeah, you're right, they are cached after first access. :-/
Is there any option to "invaldiate" caches? Is this expected behavior?
Yes, that is intentional, and unfortunately, there's no switch yet to invalidate the caches.
Noticed this while i wanted to unittest my application with PHPUnit:
Let's assume you have the following code:
Error Description:
As stated in the code comments, the first
var_dump
returns the correct result ("First value"). The second one does not (It also returns "First value").Expected behavior:
Second
var_dump
should return "Second value"Are the results cached or something like that?
p.s it doesn't matter which HTTP Headers you change / add / remove it will always return the first result