drupal-console icon indicating copy to clipboard operation
drupal-console copied to clipboard

[ *build* ] "drupal build"-command has cache clear run after updating db and importing configuration

Open drupov opened this issue 4 years ago • 1 comments

Problem/Motivation

The problem here is that clearing the cache runs after updating the database and importing config. However clearing the cache allows Drupal to register newly added php functions/classes and also files (which might be configuration files) and normally needs to run before these two.

How to reproduce

Include steps related how to reproduce.

Details to include:

  • Drupal version: 8.8.1
  • Console version: 1.9.0
  • Console Launcher version: 1.9.4

Solution

Clearing the cache should come prior to updating the database and importing config.

drupov avatar Feb 10 '20 12:02 drupov

Here is an example of the sequence in the documentation of platform.sh:

image

drupov avatar Feb 10 '20 12:02 drupov