- Issue created by @murz
- Merge request !136Issue #3509060: Lock the State while updating the list of the last requests hashes → (Merged) created by murz
- 🇦🇲Armenia murz Yerevan, Armenia
The issue was in the static cache of the State API, so when we call
$this->stateService->get('some_key')
more than one time, all next calls return statically cached value for the current request, not the actual value from the database.So, another parallel request can update the value, and it will be overwritten by the current request. That causes the issue.
The solution is to force clear the static cache before each call of the
$this->stateService->get('some_key')
.