Download the PHP package ocramius/ocra-cached-view-resolver without Composer
On this page you can find all versions of the php package ocramius/ocra-cached-view-resolver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ocramius/ocra-cached-view-resolver
More information about ocramius/ocra-cached-view-resolver
Files in ocramius/ocra-cached-view-resolver
Package ocra-cached-view-resolver
Short Description Cached view template path resolver to speed up the ZF2 view layer by avoiding stat calls
License MIT
Homepage https://github.com/Ocramius/OcraCachedViewResolver
Informations about the package ocra-cached-view-resolver
OcraCachedViewResolver
OcraCachedViewResolver is performance-oriented laminas/laminas-mvc
Module that increases performance
in your application by caching the process of resolving template names to template paths.
In laminas/laminas-mvc-skeleton
, the process of resolving template
paths causes a lot of stat calls (disk access). This module adds a cache layer to avoid that.
Installation
The recommended way to install ocramius/ocra-cached-view-resolver
is through
composer:
You can pick any laminas/laminas-cache-storage-implementation
you want, as long as you provide one, and later configure it.
You can then enable the module in your config/application.config.php
by adding
'OcraCachedViewResolver'
to the 'modules'
section.
Configuration
Default configurations are provided in
config/ocra-cached-view-resolver.local.php.dist
.
You can copy it to your application's config/autoload
directory and remove the .dist
extension
from the file name, then adjust its contents to your needs.
Note that you will need to provide your own laminas/laminas-cache
adapter (pick one of your choice),
and configure it as service to be referenced in your copy of config/ocra-cached-view-resolver.local.php.dist
.
All versions of ocra-cached-view-resolver with dependencies
laminas/laminas-cache Version ^3.9.0
laminas/laminas-modulemanager Version ^2.14.0
laminas/laminas-mvc Version ^3.6.0
laminas/laminas-servicemanager Version ^3.20.0
laminas/laminas-view Version ^2.25.2