Integration of the section.io varnish cache
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
_config
cert
code
docs/en
tests
.editorconfig
.gitattributes
.htaccess
.scrutinizer.yml
.travis.yml
_config.php
changelog.md
code-of-conduct.md
composer.json
contributing.md
default.vcl
license.md
readme.md

readme.md

SilverStripe Section.io integration (Varnish Cache)

Build Status Code Quality Code Coverage Version License

Overview

Integrates a SilverStripe installation with [section.io] (https://www.section.io/) varnish cache. section.io is a cloud installation of varnish running on AWS.

It uses varnish bans for flushing, which bans the objects from being delivered from cache (and are therefor re-loaded into the cache from the origin server).

The module currently has the following functionality:

  • flush SiteTree objects from the varnish cache onAfterPublish(). The ban allows different strategies, see configuration section below.
  • flush files (i.e. PDF, DOC, etc) from the cache onAfterWrite().
  • flush images and all resampled versions of those images onAfterWrite().

This is still early stages, PRs welcome!

Requirements

  • SilverStripe CMS ~3.1

Installation

Install the module using composer:

composer require xini/silverstripe-section-io dev-master

or download or git clone the module into a ‘section-io’ directory in your webroot.

Then run dev/build.

See documentation for further details.

License

BSD 3-Clause License, see License

Documentation

See documentation