Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
CronForm does not access state properly.
Comment | File | Size | Author |
---|---|---|---|
drupal-CronForm.patch | 1.47 KB | elachlan | |
Comments
Comment #1
elachlan CreditAttribution: elachlan commentedTest passed. A review would be nice so we can RTBC.
Comment #2
BerdirLooks good.
I already had a similar fix in #1786490: Add caching to the state system, which is the reason this is bad. That issue will replace the state service with a cache decorator, not using it but directly accessing the state collection circuments the cache invalidation logic.
It's just like trying to access a tempstore collection directly through the keyvalue expirable service, we have a specific service/API, so we need to use it consistently.
Comment #3
YesCT CreditAttribution: YesCT commentedThis issue was RTBC and passing tests on July 1, the beginning of API freeze.
Comment #4
catchCommitted/pushed to 8.x, thanks!