Skip to content

Commit fd12d45

Browse files
committed
Merge branch '6.0' into 6.1
* 6.0: added enable http cache xml example
2 parents c5220e1 + 0564e14 commit fd12d45

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)