library swmcache-twig-extension
Flat Cache part of your content in Twig. Perfect to reduce render() gen time. Twig cache extension that work without dependency.
scullwm/swmcache-twig-extension
Flat Cache part of your content in Twig. Perfect to reduce render() gen time. Twig cache extension that work without dependency.
- Tuesday, February 18, 2014
- by ScullWM
- Repository
- 1 Watchers
- 2 Stars
- 49 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
SwmCache-Twig-Extension
Flat Cache part of your content in Twig. Perfect to reduce render() gen time. Twig cache extension that work without dependency., (*1)
, (*2)
Why
Couldn't find a simple twig cache extension that don't need many libs. Here it just use the Twig Cache Folder, (*3)
Installation
The extension is installable via composer:, (*4)
{
"require": {
"scullwm/swmcache-twig-extension": "dev-master"
}
}
Usage
addExtension(new SwmCacheTwig());
?>
How to use ?
{% swmcache 'ephemeride' '3600' %}
{{ render(url('page_ephemeride')) }}
{% endswmcache %}
Todo