# Controlling the cache?

**URL:** <https://forum.getkirby.com/t/controlling-the-cache/464>\
**Category:** Questions\
**Tags:** v2\
**Created:** [March 15, 2015, 9:11am UTC](https://forum.getkirby.com/t/controlling-the-cache/464 "2015-03-15T09:11:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [March 15, 2015, 9:20am UTC](https://forum.getkirby.com/t/controlling-the-cache/464/2 "2015-03-15T09:20:53Z")

</div>

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

```php
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.

---

_[View the full topic](https://forum.getkirby.com/t/controlling-the-cache/464)._
