https://github.com/devside/varnish
Varnish module for Kohana 3
https://github.com/devside/varnish
Last synced: about 2 months ago
JSON representation
Varnish module for Kohana 3
- Host: GitHub
- URL: https://github.com/devside/varnish
- Owner: DevSide
- Created: 2014-03-07T10:10:20.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-03-07T10:18:33.000Z (over 12 years ago)
- Last Synced: 2025-01-27T22:44:19.708Z (over 1 year ago)
- Language: PHP
- Size: 125 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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')
);
```