We are using moodle 3.4. We are using Moodle APIs to integrate with an external student portal. This portal calls example of below APIs for student operations:
1) Create user
2) Update user profile
3) Enrol/unenrol course
4) Enrol/unenral group
We found that for every operation such as enrol/unenrol course, it takes up to 30s to update this on the Moodle server cache. This means if the student logs in the moodle site right after an enrol to course, it takes 30s for this to take effect on his/her profile.
Is there any way we can improve this?