I made a custom admin page and i am saving some configuration fields there and then am getting a notification from magento that i need to flush the cache. Is there any way to do that from the module itself? maybe put a hook where i save the config?
You can inject
\Magento\Framework\App\CacheInterface as dependency and assign it to
$_cacheManager in your constructor or get it from de
$context (if you have) and then after save changes clean the related cache that way:
You could find a complete implementation in Catalog\Product\Model
I guess you could use the "get" method of the ObjectManager to get the cache instance too, but I'm not sure if is a good practice.