Skip to content

Commit 93803c6

Browse files
committed
Merge pull request #187 from FriendsOfSymfony/improve-glossary
clarify invalidation method description
2 parents a691122 + 3eaccb8 commit 93803c6

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

doc/invalidation-introduction.rst

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,16 @@ all methods, please refer to proxy specific documentation for the details.
122122
client requests the URL, data is fetched from the application, stored in
123123
the caching proxy, and returned to the client.
124124

125+
A purge removes all *variants* of the cached content, as per the ``Vary``
126+
header.
127+
125128
Refresh
126-
Refresh updates the cached content immediately. The content is not deleted
127-
from the cache, like in purge, but is replaced with a new version fetched
128-
from the application.
129+
Fetch the requested page from the backend immediately, even if there would
130+
normally be a cache hit. The content is not just deleted from the cache,
131+
but is replaced with a new version fetched from the application.
132+
133+
As fetching is done with the parameters of the refresh request, other
134+
variants of the same content will not be touched.
129135

130136
Ban
131137
Unlike purge, ban does not remove the content from the cache

0 commit comments

Comments
 (0)