MDL-59039 Global search: Allow partial indexing (in scheduled task)
This commit is contained in:
@@ -49,7 +49,8 @@ class search_optimize_task extends scheduled_task {
|
||||
* Throw exceptions on errors (the job will be retried).
|
||||
*/
|
||||
public function execute() {
|
||||
if (!\core_search\manager::is_global_search_enabled()) {
|
||||
if (!\core_search\manager::is_global_search_enabled() &&
|
||||
!get_config('core', 'searchindexwhendisabled')) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user