- Issue created by @sdsc
- 🇩🇪Germany jurgenhaas Gottmadingen
There is the List: contains item condition which will be coming to ECA 2.0
Thank you for your reply! Will look forward to that function!
Another issue I found is: even if I set the event of viewing an entity, and check conditions afterwards, the code only works for once, which means when I refresh the site, the code will not be kicked in. I'll have to clear the cache to get the code working again. Not sure whether it is ECA related or Drupal core related, feels like the cache prevents rechecking viewing an entity.
- Status changed to Fixed
9 months ago 8:26am 19 March 2024 - 🇩🇪Germany jurgenhaas Gottmadingen
It's not a good idea, to ask follow-up questions in issues. Please start new ones for new topics, otherwise the issue can't be helpful for others of when searching for a solution later on.
... the code only works for once, which means when I refresh the site, the code will not be kicked in
That's the purpose of caching. You don't want your Drupal site to execute all code over and over again. Therefore, when Drupal can deliver a cached page, it won't get to the point where it dispatches all the events.
Automatically closed - issue fixed for 2 weeks with no activity.