Fix: check script may be working during cache flushing