MDL-40136 cache: fixed dirroot change bugs with plugin caches