File tree 3 files changed +15
-5
lines changed
3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ the new route that defines the URL of the page that you're about to create:
231
231
The routing consists of two basic pieces: the ``path ``, which is the URL
232
232
that this route will match, and a ``defaults `` array, which specifies the
233
233
controller that should be executed. The placeholder syntax in the path
234
- (``{limit} ``) is a wildcard. It means that ``/number /10 ``, ``/number /327 ``
234
+ (``{limit} ``) is a wildcard. It means that ``/random /10 ``, ``/random /327 ``
235
235
or any other similar URL will match this route. The ``{limit} `` placeholder
236
236
parameter will also be passed to the controller so that you can use its value
237
237
to generate the proper random number.
Original file line number Diff line number Diff line change @@ -91,10 +91,18 @@ Symfony2 adds automatically:
91
91
Cache Invalidation
92
92
------------------
93
93
94
- You should never need to invalidate cached data because invalidation is already
95
- taken into account natively in the HTTP cache models (see :ref: `http-cache-invalidation `).
94
+ If you want to cache content that changes frequently and still serve
95
+ the most recent version to users, you need to invalidate that content.
96
+ While `cache invalidation `_ allows you to purge content from your
97
+ proxy before it has expired, it adds complexity to your caching setup.
96
98
97
- Still, Varnish can be configured to accept a special HTTP ``PURGE `` method
99
+ .. tip ::
100
+
101
+ The open source `FOSHttpCacheBundle `_ takes the pain out of cache
102
+ invalidation by helping you to organize your caching and
103
+ invalidation setup.
104
+
105
+ Varnish can be configured to accept a special HTTP ``PURGE `` method
98
106
that will invalidate the cache for a given resource:
99
107
100
108
.. code-block :: text
@@ -232,3 +240,5 @@ absolute URLs:
232
240
.. _`Edge Architecture` : http://www.w3.org/TR/edge-arch
233
241
.. _`GZIP and Varnish` : https://www.varnish-cache.org/docs/3.0/phk/gzip.html
234
242
.. _`Surrogate-Capability Header` : http://www.w3.org/TR/edge-arch
243
+ .. _`cache invalidation` : http://tools.ietf.org/html/rfc2616#section-13.10
244
+ .. _`FOSHttpCacheBundle` : http://foshttpcachebundle.readthedocs.org/
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ used by each is explicitly set::
153
153
154
154
// ...
155
155
156
- As you can see, the ``prod `` key specifies that this environment will run
156
+ As you can see, the ``prod `` key specifies that this application will run
157
157
in the ``prod `` environment. A Symfony2 application can be executed in any
158
158
environment by using this code and changing the environment string.
159
159
You can’t perform that action at this time.
0 commit comments