Skip to content

Commit

Permalink
removed obsolete doc
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Oct 22, 2016
1 parent 4eaa29c commit 07957af
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions doc/recipes.rst
Expand Up @@ -343,25 +343,6 @@ To get around this, force Twig to invalidate the bytecode cache::
// ...
));

.. note::

Before Twig 1.22, you should extend ``Twig_Environment`` instead::

class OpCacheAwareTwigEnvironment extends Twig_Environment
{
protected function writeCacheFile($file, $content)
{
parent::writeCacheFile($file, $content);

// Compile cached file into bytecode cache
if (function_exists('opcache_invalidate')) {
opcache_invalidate($file, true);
} elseif (function_exists('apc_compile_file')) {
apc_compile_file($file);
}
}
}

Reusing a stateful Node Visitor
-------------------------------

Expand Down

0 comments on commit 07957af

Please sign in to comment.