Download the PHP package socalnick/scn-esi-widget without Composer
On this page you can find all versions of the php package socalnick/scn-esi-widget. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download socalnick/scn-esi-widget
More information about socalnick/scn-esi-widget
Files in socalnick/scn-esi-widget
Package scn-esi-widget
Short Description Enables ZF2 apps to output ESI tags for a widgetized and highly cacheable application.
License BSD-3-Clause
Homepage https://github.com/SocalNick/ScnEsiWidget
Informations about the package scn-esi-widget
ScnEsiWidget
Enables ZF2 apps to output ESI tags for a widgetized and highly cacheable application.
Requirements
- Zend Framework 2 (2.*)
Features
- ESI Widgets are added to an action via EsiWidget Controller Plugin
- EsiStrategy detects Surrogate Capability to choose EsiRenderer
- EsiRenderer renders child view models as ESI tags
- Falls back to PHPRenderer w/o Surrogate Capability i.e. works in dev!
Installation
It is recommended to add this module to your Zend Framework 2 application using Composer. After cloning ZendSkeletonApplication, add "socalnick/scn-esi-widget" to list of requirements, then run php composer.phar install/update. Your composer.json should look something like this:
Next add the required modules to config/application.config.php:
Varnish
Installation
Varnish can be installed on any modern Linux distribution: https://www.varnish-cache.org/docs/3.0/installation/ It is also available via Homebrew on Mac OSX for development by running brew install varnish
Configuration
This is the most basic Varnish configuration for a development environment. It sets the backend host / port, sets a request header indicating Surrogate Capability, and looks for the response Surrogate Control header to initiate ESI handling. Before running Varnish in a production environment, I highly encourage you to learn more about it at https://www.varnish-cache.org/docs