fixes #3143 login part
Merge pull request #6251 from jeabakker/3143-memcache-entity-cache-on-login

fixes #3143 login part