For about a year I have had an issue with a drupal 8 site that uses the Business Rules Module. Randomly actions are not triggered on events that had previously been firing off fine. I have noticed that clearing the cache tends to knock things back into an operational state. I am unable to replicate this manually and it seems to happen intermitently (I have seen no pattern). I did come accross an identical issue in the "Rules" module https://www.drupal.org/project/rules/issues/2893958 that seems to illustrate my exact case. I am not sure how much of the code is similar, but I thought I would bring it to your attention.
My current work around is cronning the clear cache action every hour.
Thanks for a great module. I hope this helps.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | actions-intermitently-stop-firing-until-cache-is-cleared-3093597-4.patch | 6.56 KB | lexsoft00 |
Comments
Comment #2
lexsoft00 commentedI do have a similar issue and it seems clearing the cache fix things.
The only way to replicate every time was to use Drush8:
1. Install Drupal8 and Business Rules with composer file provided. COMPOSER FILE
2.
drush en business_rules token admin_toolbar admin_toolbar_tools adminimal_admin_toolbar -y3. Go to /admin/config/workflow/business_rules/action/collection and add the action Show a message
4. Go to /admin/config/workflow/business_rules/collection and add a rule On CRON runs and attach the action Show a message
5. Clear the cache and run cron manually from UI > You should be able to see the action triggered and get displayed the mesage
6. Run
drush cronand run cron manually from UI > You will not see the action triggered until clearing the cacheI wonder if it's related to the:
Comment #3
lexsoft00 commentedComment #4
lexsoft00 commentedBig Thanks to @CProfessionals for pointing me in the right directions. I was able to refactor the patch from https://www.drupal.org/project/rules/issues/2893958.
It works now for me.
Comment #5
lexsoft00 commentedComment #6
Coops_This is great, #4 working for me.
Comment #7
lexsoft00 commentedComment #9
colanCode looks great; thanks!