Invalidate cache when config changes