I
I
Igor2017-09-16 01:09:43
Drupal
Igor, 2017-09-16 01:09:43

Why does the request work when running cron manually, but not in the machine?

Strange problem. When running the cron on a schedule, the request does not work, but if you run it manually, then everything is fine. What is this mb connected with?

$query = \Drupal::database()->update('TABLE');
                    $query->fields(['FIELD' => 1]);
                    $query->condition('ID', $ID);
                    $query->execute();

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question