Closed goellner closed 5 years ago
What does the order affect?
@jasonvarga the cache is updated with the content.saved
event - so when you are listening for the EntrySaved
event the entry can't be found because the cache has not been updated.
When listening for the ContentSaved
event the Entry can be found because the cache has already been updated. In my opinion EntrySaved
and ContentSaved
should behave exactly the same with the only difference being that ContentSaved
is triggered for all content items wheras EntrySaved
is only triggered for entries.
Describe the bug The order of the saved events is wrong in
core/Data/Content/Content.php
.To Fix
Change
to