Fixing cache clearing bug which prevented new registrations working in
first session