catalyst / moodle-tool_abconfig

A way to A/B test config, or slowly turn on config for certain audiences or % of traffic
https://moodle.org/plugins/tool_abconfig
6 stars 4 forks source link

Optimize impacts of plugin, muc Caching of all experiment data #13

Closed brendanheywood closed 4 years ago

brendanheywood commented 4 years ago

I'm seeing around 5-10 extra db calls per page load including some even if we don't even have any experiments setup. Ideally we should never hit the db on a page load.

The data in the experiments is fairly small and the whole thing, ie all active experiments should be in a single muc item in application scope.

Anytime you edit, disable, activate or change the condition sets on any experiment just re-save the entire muc item.

Peterburnett commented 4 years ago

MUC caching has been added in PR #14