PHPackages                             oprokidnev/cacheable-rendering - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. oprokidnev/cacheable-rendering

ActiveLibrary[Templating &amp; Views](/categories/templating)

oprokidnev/cacheable-rendering
==============================

1.0.x-dev(9y ago)1408PHPPHP ^5.5 || ^7.0

Since Apr 19Pushed 8y ago1 watchersCompare

[ Source](https://github.com/oprokidnev/CacheableRendering)[ Packagist](https://packagist.org/packages/oprokidnev/cacheable-rendering)[ Docs](https://github.com/oprokidnev/CacheableRendering)[ RSS](/packages/oprokidnev-cacheable-rendering/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Cacheable placeholder module
============================

[](#cacheable-placeholder-module)

Provides a set of utils for html caching including placeholder view helper calls interception and restore.

Installation
------------

[](#installation)

```
composer require oprokidnev/cacheable-rendering:^2.0

```

Initialize module `'Oprokidnev\\CacheableRendering'` in application.config.php and run you application once. Then you will get a new file in config/autoload named `cacheable-rendering.config.local.php`. This is the config with storage settings. By default I choose use filesystem cache adapter, but you can change this settings with the compatible with \\Zend\\Cache\\StorageFactory::factory method array.

View helpers
------------

[](#view-helpers)

### CachedCallback

[](#cachedcallback)

This is the most typical example when you should use callback cache.

```
