Purge cache on BufWrite

Instead of much simpler solution define an API that may be used for anybody
willing to add cache purging on events with a few keystrokes