This is the code you’d need in your plugin to empty the core pages cache:
kirby()->cache('pages')->flush()