diff --git a/core/modules/field/config/field.yml b/core/modules/field/config/field.yml new file mode 100644 index 0000000..9a4b516 --- /dev/null +++ b/core/modules/field/config/field.yml @@ -0,0 +1 @@ +field_purge_batch_size: 10 diff --git a/core/modules/field/field.module b/core/modules/field/field.module index 2274b93..aaf40fd 100644 --- a/core/modules/field/field.module +++ b/core/modules/field/field.module @@ -323,7 +323,7 @@ function field_cron() { field_sync_field_status(); // Do a pass of purging on deleted Field API data, if any exists. - $limit = variable_get('field_purge_batch_size', 10); + $limit = config('field')->get('field_purge_batch_size'); field_purge_batch($limit); }