Skip to content

Commit f4fc63f

Browse files
committed
minor #17009 Added enable http cache xml example (mohamedGasmii)
This PR was merged into the 5.4 branch. Discussion ---------- Added enable http cache xml example <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- bf85ab3 added enable http cache xml example
2 parents 789ed89 + bf85ab3 commit f4fc63f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

http_cache.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,26 @@ Use the ``framework.http_cache`` option to enable the proxy for the
8989
framework:
9090
http_cache: true
9191
92+
.. code-block:: xml
93+
94+
<!-- config/packages/framework.xml -->
95+
<?xml version="1.0" encoding="UTF-8" ?>
96+
<container xmlns="http://symfony.com/schema/dic/services"
97+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
98+
xmlns:framework="http://symfony.com/schema/dic/symfony"
99+
xsi:schemaLocation="http://symfony.com/schema/dic/services
100+
https://symfony.com/schema/dic/services/services-1.0.xsd
101+
http://symfony.com/schema/dic/symfony
102+
https://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
103+
104+
<when env="prod">
105+
<framework:config>
106+
<!-- ... -->
107+
<framework:http-cache enabled="true"/>
108+
</framework:config>
109+
</when>
110+
</container>
111+
92112
.. code-block:: php
93113
94114
// config/packages/framework.php

0 commit comments

Comments
 (0)