learnweb / moodle-repository_owncloud

[ARCHIVE] Starting Moodle 3.6, our plugin ships with Moodle! :tada: Use this:
https://docs.moodle.org/en/Nextcloud_repository
GNU General Public License v3.0
8 stars 8 forks source link

Initialise system account connections only if explicitly required #39

Closed Dagefoerde closed 6 years ago

Dagefoerde commented 6 years ago

The repository constructor is called more often than we assumed, and most of the time the system account is not required.

Therefore, initialise connections on-demand, but cache established ones in the process.