Varnish - config notes1

http://blogs.osuosl.org/gchaix/2009/10/12/pressflow-varnish-and-caching/

http://highervisibilitywebsites.com/example-varnish-vcl-drupal-pressflow...

There are actually 8 subroutines that control how Varnish behaves, and that you can change in your Varnish config. They are:

vcl_recv()

Called after a request is received from the browser, but before it is processed.

vcl_pipe()

Called when a request must be forwarded directly to the backend with minimal handling by Varnish (think HTTP CONNECT)

vcl_hash()

Called to determine the hash key used to look up a request in the cache.

vcl_hit()

Called after a cache lookup when the object requested has been found in the cache.

vcl_miss()

Called after a cache lookup when the object requested was not found in the cache.

vcl_pass()

Called when the request is to be passed to the backend without looking it up in the cache.

vcl_fetch()

Called when the request has been sent to the backend and a response has been received from the backend.

vcl_deliver()

Called before a response object (from the cache or the web server) is sent to the requesting client.




Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. The supported tag styles are: <foo>, [foo].

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.
Bg