Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/devside/varnish

Varnish module for Kohana 3
https://github.com/devside/varnish

Last synced: 24 days ago
JSON representation

Varnish module for Kohana 3

Awesome Lists containing this project

README

        

#Varnish module for Kohana 3

This module allows you to send a special HTTP request to Varnish.
---

##Requirements
* PHP Curl extension
* You should have configured Varnish to purge an url

##Usage

```php
// Single
Varnish::instance()->purge(URL::site('/page/to/purge'));

// Multi
Varnish::instance()->purgeAll(array(
URL::site('/page/to/purge'),
URL::site('/page/to/purge')
);
```