-
Improvement
-
Resolution: Won't Do
-
Minor
-
None
-
2.6.3, 3.10, 4.0
-
MOODLE_26_STABLE, MOODLE_310_STABLE, MOODLE_400_STABLE
-
MDL-47456-avoid-siteid-db -
We are seeing slowness on our servers from this query:
SELECT value FROM mdl_config WHERE name = 'siteidentifier'
|
We tracked the query down to get_config method which is being called from initialise_cfg.
So, it appears that on every page page load, this query is being executed. Also, the reason for the query seems a little odd, like for detecting if we are doing an install or similar. I looked at the original code that added this in and it used to disable caches when the query failed, but that line was removed.
Anyways, seeking advice on refactoring so this query isn't executed on every page.
- caused a regression
-
MDL-70882 Revert broken cache performance improvement
- Closed
- has a non-specific relationship to
-
MDL-70233 alternative_cache_factory_class isn't honored when caching is disabled
- Closed
- has been marked as being related by
-
MDL-71014 Cache the siteidentifier and site contextid in local cache
- Closed
- Testing discovered
-
MDL-70706 Edge case with siteidentifier during install, possibly a MUC issue
- Open