-
When using NFS shared volume for
/moodledata, you may getsession data file is not created by your uiderror. It is due to the NFS mount user id mapping is not consistent with local user id. Use Redis session for workaround. -
By default Moodle's application cache uses a file store, which is slow. When
REDIS_HOSTis set, this image predefines a Redis cache store calledredis_appthat appears underSite administration->Plugins->Caching->Configuration. To activate it for application/request caches:- Verify
redis_appshows up under "Configured store instances" with Ready: Yes. - In the "Stores used when no mapping is present" section, click Edit mappings.
- Set Application ->
redis_app(and Request ->redis_appif desired). Sessions already use Redis automatically via$CFG->session_handler_class. - Save changes and Purge all caches.
The store is registered by the docker-entrypoint via
cache_config_writer::add_store_instance()(the only API that actually persists tomoodledata/muc/config.php—$CFG->cachestoresinconfig.phplooks plausible but is silently ignored by Moodle's cache framework). Mode mappings still need the admin UI step on first install — Moodle has no reliable programmatic API for default mode mappings. - Verify
ubc/moodle-docker
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|