MDL-59039 Global search: Allow partial indexing (in scheduled task)

This commit is contained in:
sam marshall
2017-07-11 16:41:33 +01:00
parent 350700bf8b
commit 67d6479581
13 changed files with 302 additions and 36 deletions
+2 -1
View File
@@ -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;
}