I have Kirby cache enabled and I change the content of a page through the panel but after the update, still, the cached version of the page is loaded.
I thought then to add this
kirby()->cache('pages')->flush() to the
page.update:after hook I have inside config.php. I have the latest version of Kirby (3.4.3) and I used this code
Am I doing something wrong? I used just $this following this reference: https://getkirby.com/docs/reference/plugins/extensions/hooks#accessing-kirby-site-and-user-in-a-hook-callback
Thank you in advance for your help.