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
Based on the bundle configuration (user_context_hash, xkey, ...) and registered http cache subscribers (e.g. CustomTtlListener, UserContextListener, ...) it would be greate to generate the .vcl file.
i fixed the VCL snipped we provide in FriendsOfSymfony/FOSHttpCache#497 but got sidetracked because the CI had rotted and i started the switch to github actions. that is FriendsOfSymfony/FOSHttpCache#500 which i did not get around to figure out yet because live happened...
FOSHttpCache provides the various VCL snippets you need - the performance fix needs to be done in those snippets, adding a command here does not solve that problem.
however, there is value in your idea. such a command would make it easier for new users to get started without having to figure out which snippets exactly they need.
my idea for the snippets is that you use VCL to include the individual files to keep the main VCL small and clearly visible which parts are written by the user and which are the snippets provided by FOSHttpCache. this makes it easier to follow upgrades, e.g. the context hash performance optimization that you mentioned.
if you want to work on such a command, i'd suggest we generate a very barbone VCL that references the snippets that you need and calls the methods as necessary to make varnish work with the symfony configuration. we could put all that into a build folder and also copy the snippets there so people can just use the build folder as a starting point for varnish.
Based on the bundle configuration (user_context_hash, xkey, ...) and registered http cache subscribers (e.g. CustomTtlListener, UserContextListener, ...) it would be greate to generate the
.vcl
file.Specially in cases like FriendsOfSymfony/FOSHttpCache#496 reported by @bastnic. The FOSHttpCacheBundle could provide performant vcl for the current configuration.
The text was updated successfully, but these errors were encountered: