Controlling the cache?

You might be able to utilize what Kirby does itself after updating a page to refresh the cache:

cache::flush();
$page->reset();
$page->touch();

So maybe you can do something like that at the end of your API call / refresh.

EDIT: if you use page->update() the cache should be refreshed anyways.

2 Likes