Skip to content

Commit f8a1c19

Browse files
committed
Merge pull request #142 from FriendsOfSymfony/invalidation-vs-validation
warn about validation vs invalidation and cleanup feature list
2 parents 95d6a2b + d8b5a5c commit f8a1c19

File tree

3 files changed

+22
-11
lines changed

3 files changed

+22
-11
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,18 @@ Introduction
99

1010
This bundle offers tools to improve HTTP caching with Symfony2. It provides
1111
global configuration options to set caching headers based on the path,
12-
controller and other aspects of the request. It provides services for the
13-
FOSHttpCache library tools to actively invalidate caching proxies and some
14-
additional tools that can help when working with a caching proxy.
12+
controller and other aspects of the request. In addition, it provides services
13+
for the FOSHttpCache library tools to actively invalidate caching proxies and
14+
some additional tools that can help when working with a caching proxy.
1515

1616
Features
1717
--------
1818

19-
* Set path-based cache expiration headers via your app configuration.
20-
* Set up an invalidation scheme without writing PHP code.
21-
* Send invalidation requests with minimal impact on performance.
19+
* Set path-based cache expiration headers via your app configuration;
20+
* Set up an invalidation scheme without writing PHP code;
21+
* Tag your responses and invalidate cache based on tags;
22+
* Send invalidation requests with minimal impact on performance;
23+
* Differentiate caches based on user *type* (e.g. roles);
2224
* Easily implement your own HTTP cache client.
2325

2426
Documentation

Resources/doc/features/invalidation.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ fetch a fresh copy from the backend application and serve that instead. By
1414
So for the following examples to work you must first
1515
:ref:`configure your proxy <foshttpcache:proxy-configuration>`.
1616

17+
.. tip::
18+
19+
Invalidation can result in better performance compared to the validation
20+
caching model, but is more complex. Read the
21+
:ref:`Introduction to Cache Invalidation <foshttpcache:invalidation introduction>`
22+
of the FOSHttpCache documentation to learn about the differences and decide
23+
which model is right for you.
24+
1725
Cache Manager
1826
-------------
1927

Resources/doc/index.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ FOSHttpCacheBundle
44
This is the documentation for the `FOSHttpCacheBundle <https://github.com/FriendsOfSymfony/FOSHttpCacheBundle>`_.
55
Use the FOSHttpCacheBundle to:
66

7-
* set HTTP caching headers in your application configuration based on request
8-
properties such as path and controller;
9-
* tag your response caches with annotations;
10-
* invalidate cached paths, routes and tags with the FOSHttpCache_ library;
11-
* differentiate cached content per user type.
7+
* Set path-based cache expiration headers via your app configuration;
8+
* Set up an invalidation scheme without writing PHP code;
9+
* Tag your responses and invalidate cache based on tags;
10+
* Send invalidation requests with minimal impact on performance with the FOSHttpCache_ library;
11+
* Differentiate caches based on user *type* (e.g. roles);
12+
* Easily implement your own HTTP cache client.
1213

1314
Contents
1415
--------

0 commit comments

Comments
 (0)