You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.
What do you think of having the default TTL of BlockVarnishCache configurable by parameter?
I need it for my current project, so if it sounds interesting I could do a PR.
The text was updated successfully, but these errors were encountered:
i would use a setDefaultTtl method rather than adding yet more constructor arguments, as there are quite a lot already. then the DI can add a call to that method if the configuration value was set.
Yes exactly, that's what I meant.
Sure I was thinking of a setMethod, I'm looking further into this as it seems Sonata has hardcoded that value in several places, so not sure if changing it there would have any effect.
i think here is the right place, as its injected in the constructor of the sonata cache class that is created. sonata cache can't provide a default value there, the factory class here in the bundle can.
What do you think of having the default TTL of BlockVarnishCache configurable by parameter?
I need it for my current project, so if it sounds interesting I could do a PR.
The text was updated successfully, but these errors were encountered: