Split invalidation from options_submit() in order to be called from other places.
Invalidate cache.