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
The addon should work auto-magically in most cases. It listens for hooks in form, nav and partial tags, as well as augmentation of entries, terms, assets and globals to determine what content is being output.
23
-
24
-
This data is then added to a cache store that is used to determine what cached data should be invalidated when tracked items are saved or deleted. If you want to clear data on other events (eg clear any page builder elements on entry create), just add a listener and call invalidate on the Tracker facade (eg. `Tracker::invalidate(['partial:_partials/my_pagebuilder_block']`);
25
-
26
-
27
-
The default cache is used, or if you have specified a `static_cache` store this will be used instead. This data will then be cleared when your static cache is cleared.
28
-
29
-
30
-
### Middleware
31
-
The autocache middleware will automatically be added to your `web` middleware stack. If you want to include it to other stacks simply add:
The addon comes with a Facade for interacting with the Tracker:
37
-
`\Thoughtco\StatamicCacheTracker\Facades\Tracker`
38
-
39
-
40
-
### Adding your own tracking data
41
-
If you have your own custom tracking data, for example for one of your own tags, you can register them on the Facade. Please bear in mind tracking only happens while the response is generated, so where possible use augmentation hooks.
0 commit comments