Closed lekoala closed 11 months ago
Since it's an extension applied to all dataobject, extra caution should be taken in onBeforeWrite
https://github.com/silverstripe/silverstripe-assets/blob/e57099b0f1bfa63509307fe8da290c1dfe7a4ed1/src/AssetControlExtension.php#L72-L83
This kind of code can lead to this
If i understand this correctly, it means we run an uncached select query, on each write, for any dataobject ? that can't be right ? right ?
example solution provided as PR
PR merged - it will be automatically tagged when CI has finished running on the branch.
Since it's an extension applied to all dataobject, extra caution should be taken in onBeforeWrite
https://github.com/silverstripe/silverstripe-assets/blob/e57099b0f1bfa63509307fe8da290c1dfe7a4ed1/src/AssetControlExtension.php#L72-L83
This kind of code can lead to this
If i understand this correctly, it means we run an uncached select query, on each write, for any dataobject ? that can't be right ? right ?
PRs