Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.5.2
-
-
-
MOODLE_35_STABLE
-
MOODLE_36_STABLE
-
Moodle Mobile 3.6.0
Description
This directive was created with logging in mind. In the app, we only call logging WebServices when the user opens a page, they aren't called when the user performs a PTR. It's not a bug, it was designed like this.
However, the behaviour of this directive isn't consistent. If the user performs a PTR and the HTML or Javascript returned by the plugin has changed, the page is compiled and core-site-plugins-call-ws-on-load is executed (this cannot be prevented). If the HTML and javascript haven't changed, then the code isn't compiled and the directive isn't executed.
We discussed this internally and we decided to always compile the code, even if it hasn't changed. This means that the directive will be executed when performing a PTR too.