drupalextension icon indicating copy to clipboard operation
drupalextension copied to clipboard

provide step or add static cache clearing to cron

Open djdevin opened this issue 7 years ago • 0 comments

There are some cases where we assume that there is going to be a new page load, or at least a non-statically cached call.

For example:

  1. Create a user with Behat (Drupal API)
  2. Edit that user, but, through Mink
  3. Run cron, which operates on that user.

The "run cron" step in Drupalextension does not clear static caches, so the user is the old user.

There is already a static cache step, but it's not exposed as gherkin yet.

I fixed the issue by calling clearStaticCaches() before running cron.

djdevin avatar Sep 07 '17 21:09 djdevin