Closed sijones-uk closed 3 years ago
No, the isNew
property is still the appropriate one in this case. The firstSave
property is true
when an unpublished draft is converted to a real entry for the first time, and since the entry ID is consistent between unpublished drafts and “real” entries on Craft 3.7+, we definitely want to clear any caches at that point.
Description
Since Craft 3.7.5, the
isNew
property is no longer reliable when determining whether the entry is being saved for the first time. It is recommended to use the newly created (as of Craft 3.7.5)firstSave
property instead.Steps to reproduce
SEOMate
class uses theisNew
property to check if the Element is newly createdAdditional info