Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Indeed, this issue is not considered in the official documentation.
If there is a valid cache with an unexpired TTL in the cache, then you will not be able to update it.
The correct solution is to clear the cache and add a new value,
but you don't need to call ->clearDir(), just call ->clear() with the appropriate tag
For example, tag and clear by tag. Or, if this is a component cache, then clear by the tag that the component puts.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question