fix clear cache + optional [] on multiple files