fix up cache permissions