LDAP: fix cache save and check, fixes oc-2118
LDAP: fix cache save and check, fixes oc-2118

lrytz/core,sharidas/core,cernbox/core,whitekiba/server,jbicha/server,lrytz/core,owncloud/core,nextcloud/server,owncloud/core,michaelletzgus/nextcloud-server,Ardinis/server,pmattern/server,andreas-p/nextcloud-server,whitekiba/server,andreas-p/nextcloud-server,xx621998xx/server,xx621998xx/server,xx621998xx/server,Ardinis/server,whitekiba/server,xx621998xx/server,endsguy/server,pmattern/server,jbicha/server,lrytz/core,cernbox/core,andreas-p/nextcloud-server,Ardinis/server,cernbox/core,bluelml/core,endsguy/server,jbicha/server,pixelipo/server,pmattern/server,phil-davis/core,IljaN/core,sharidas/core,michaelletzgus/nextcloud-server,nextcloud/server,pixelipo/server,nextcloud/server,endsguy/server,owncloud/core,IljaN/core,pollopolea/core,michaelletzgus/nextcloud-server,endsguy/server,IljaN/core,bluelml/core,pollopolea/core,pollopolea/core,sharidas/core,IljaN/core,sharidas/core,owncloud/core,jbicha/server,pmattern/server,lrytz/core,owncloud/core,andreas-p/nextcloud-server,nextcloud/server,whitekiba/server,cernbox/core,cernbox/core,xx621998xx/server,bluelml/core,bluelml/core,jbicha/server,pixelipo/server,andreas-p/nextcloud-server,Ardinis/server,pixelipo/server,whitekiba/server,endsguy/server,michaelletzgus/nextcloud-server,pixelipo/server,bluelml/core,Ardinis/server,IljaN/core,pmattern/server,pollopolea/core,pollopolea/core,lrytz/core,sharidas/core