MDL-38387 cache: fixed inifinite initialisation loop with site id