Jump to content

Varnish Purge Headers


.Nuno.

Recommended Posts

%7Boption%7D



File Name: Varnish Purge Headers

File Submitter: .Nuno.

File Submitted: 12 Aug 2012

File Category: Performance

Supported Versions: IP.Board 3.4.x



This modification will send new headers so varnish can purge the modified content.

* Features *

New headers will be added when new content or modified content is post:

- On New Topic: X-Purge-Host + X-Purge-Forum
- On New Post: X-Purge-Host + X-Purge-Topic + X-Purge-Forum
- On Post/Topic Edit: X-Purge-Host + X-Purge-Topic + X-Purge-Forum

X-Purge-Host: www.example.com
X-Purge-Forum: /forum/2-a-test-forum/
X-Purge-Topic: /topic/10-varnish-test-topic/

* Installation *

- Install the hook: System > Applications & Modules > Manage Hooks



here to download this file

Link to comment
Share on other sites

  • 3 weeks later...
  • 3 weeks later...
  • 2 weeks later...
  • 3 months later...
  • 2 months later...

Hi,

Just update this hook with a new header scheme

X-Purge-Host: www.example.com
X-Purge-Forum: /forum/2-a-test-forum/
X-Purge-Topic: /topic/10-varnish-test-topic/

Note: this plugin doesn't do anything other then send new headers so you can use them in your varnish configuration to ban url's.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...