drupal-8.without_automated_cron.php 337 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<?php

$connection = Drupal\Core\Database\Database::getConnection();
$config = $connection;

$connection->merge('config')
  ->condition('name', 'system.cron')
  ->condition('collection', '')
  ->fields([
    'name' => 'system.cron',
    'collection' => '',
    'data' => serialize(['threshold' => ['autorun' => 0]]),
  ])
  ->execute();