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
+30-11Lines changed: 30 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -326,19 +326,38 @@ In other words, HTTP Cache for `[Parent1]`, children of `[Parent1]` ( if any ),
326
326
### Custom purging from code
327
327
328
328
While the system purges tags whenever API is used to change data, you may need to purge directly from code.
329
-
For that you can use the built-in purge client:
329
+
For that you can inject the built-in [`PurgeClientInterface`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-HttpCache-PurgeClient-PurgeClientInterface.html) by using the `ibexa.http_cache.purge_client` service name:
330
330
331
-
``` php
331
+
``` php hl_lines="12-13 19-21 23-25"
332
332
use Ibexa\Contracts\HttpCache\Handler\ContentTagInterface;
0 commit comments