Backend Workflow¶
When a user opens a Moodle page, several things happen behind the scenes.
Example: Student opens a course page.
- The browser sends a request to the Moodle web server.
- Moodle checks whether the user is logged in.
- Moodle loads user session information.
- Moodle checks the user’s enrolment and permissions.
- Moodle queries the database for course sections, activities, settings, and access rules.
- Moodle may retrieve files from
moodledataif needed. - Moodle applies the selected theme.
- The final page is sent back to the browser.
Example: Teacher uploads an assignment file.
- Teacher selects and uploads a file.
- Moodle checks upload size limits and permissions.
- Moodle stores file metadata in the database.
- Moodle stores file content in
moodledata. - Moodle updates the activity or course record.
- Students with access can later download the file through Moodle-controlled access.