pattern escape; fix clear cache