added possibility to invalidate xcache if possible