Browse files

fix(boot): boot cache now respects system cache setting

When system cache is off, the boot sequence was still trying to load it.
This caused no problem as the cache was always empty, but it's a waste
of cycles and could be a source of bugs in the future.
  • Loading branch information...
mrclay committed Aug 11, 2016
1 parent 139bb14 commit f90b1eb162968077be9d125437a8aa2e77e129ae
Showing with 3 additions and 1 deletion.
  1. +3 −1 engine/classes/Elgg/BootService.php
@@ -141,7 +141,9 @@ public function boot() {
// finish boot sequence
- _elgg_services()->systemCache->loadAll();
+ if ($CONFIG->system_cache_enabled) {
+ _elgg_services()->systemCache->loadAll();
+ }
// we always need site->email and user->icontime, so load them together

0 comments on commit f90b1eb

Please sign in to comment.