Cache results of available languages
Cache results of available languages

This function is about 8 times calles for every single page call, when caching this variable I was able to gain a small performance improvement from 20,512 µs to 630 µs profiled with xhprof

Surely, this is no gigantic gain but if we would do that for every function out there...

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