You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/infrastructure_and_maintenance/cache/http_cache/content_aware_cache.md
+14-10Lines changed: 14 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,6 +140,17 @@ The `ConfigurableResponseCacheConfigurator` (`Ibexa\HttpCache\ResponseConfigurat
140
140
For example, a `ContentView` is covered both by the `ContentValueViewTagger` and `LocationValueViewTagger`, where the first extracts the content from the `ContentView` and passes it to the `ContentInfoTagger`.
141
141
- Value taggers - extract the `Location` and pass it on to the `LocationViewTagger`.
142
142
143
+
The built-in taggers support the following value types:
- Any view implementing `Ibexa\Core\MVC\Symfony\View\ContentValueView`
148
+
- Any view implementing `Ibexa\Core\MVC\Symfony\View\LocationValueView`
149
+
150
+
!!! warning
151
+
152
+
If a value of any other type is passed (for example, a [`Content`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Content.html) object), no tagger matches and the call has no effect.
153
+
143
154
## DispatcherTagger
144
155
145
156
Accepts any value and passes it on to every tagger registered with the service tag `ibexa.cache.http.response.tagger`.
@@ -150,17 +161,10 @@ For tagging needs in controllers, there are several options, here presented in r
150
161
151
162
1\. Reusing `DispatcherTagger` to pick correct tags.
152
163
153
-
Examples for tagging everything needed for content using the autowireable `ResponseTagger` interface:
Examples for tagging everything needed for content using the autowireable [`ResponseTagger`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-HttpCache-ResponseTagger-ResponseTagger.html) interface:
160
165
161
-
// Or if you have content / Location object only, you can instead provide content info and Location:
0 commit comments