Skip to content

Feature/includeable vcl #228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

zghosts
Copy link
Contributor

@zghosts zghosts commented Jun 25, 2015

Split of the vcl's from the tests into the /config directory ready to be included in the varnish configuration.
These vcl files are still included in the unit tests and as such are part of the tests

zanbaldwin and others added 3 commits June 25, 2015 20:33
Remove the call to flush() after invalidating tags from the tag handler, and add a note to explain why.
Fixes FriendsOfSymfony#221.
@ddeboer
Copy link
Member

ddeboer commented Jun 25, 2015

Great work! User context still needs to be done, right?

The custom ``X-Cache-Tags`` header should match the tagging header
:ref:`configured in the cache invalidator <custom_tags_header>`.
If you want to use different tag from ``X-Cache-Tags`` as defined in fos_ban.vcl,
the header should match the tagging header :ref:`configured in the cache invalidator <custom_tags_header>`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think this is a bit confusing. i would say something like:

If you need to use a different tag for the headers than the default ``X-Cache-Tags`` used in ``fos_ban.vcl``,
you need to write your own VCL code and change the tagging header :ref:`configured in the cache invalidator <custom_tags_header>`.

@dbu
Copy link
Contributor

dbu commented Jun 25, 2015

thanks a lot! i think we maybe want to add an introductionary section explaining the concept of the includable vcl and the options to use absolute paths or symlink or copy the files. and that you can copy the file and edit if you need customization, at the cost of no longer automatically updating.

@dbu
Copy link
Contributor

dbu commented Jun 25, 2015

we can still do the user context later and already merge this i think, when the details have been sorted out here.

@zghosts
Copy link
Contributor Author

zghosts commented Jun 27, 2015

Hi David's
I extracted the user_context.vcl.
Fixed the documentation errors
Updated the documentation.
I moved the vcl config directory into a resouces directory , don't know if you agree with that, but it makes more sense to me to put it there.

I also fixed a small docblock error

@ddeboer
Copy link
Member

ddeboer commented Jun 27, 2015

👍

I agree with the resources directory. Can you please squash commits?

@zghosts
Copy link
Contributor Author

zghosts commented Jun 27, 2015

Resubmitted in #229

@zghosts zghosts closed this Jun 27, 2015
@ddeboer
Copy link
Member

ddeboer commented Jun 27, 2015

Just a tip: for a PR, you can squash (rebase) commits and force push them to the PR branch, so you won't have to open a separate PR. 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants