Debugged cache static variable issue