Hello,
Has somebody used cleanupLostAttachments with Orphans option in cleanup job?
I tried it and it makes "too much" clean.
If i upload a custom logo in "preferences" screen (to be viewed at login and in the upper bar), the logo wil be added to attachment table with type "Settings". Next cleaning will clean it after my delay of days.
'OR' => [
[
'parentId' => null,
'parentType!=' => null,
'relatedType=' => null,
],
[
'parentType' => null, (for companyLogo it is null)
'relatedId' => null, (for companyLogo it is null)
'relatedType!=' => null, (for companyLogo it is settings)
]
Somebody experienced the same problem? Maybe i missed something. Any idea welcome.
Maybe we customized something wrong :-/
Has somebody used cleanupLostAttachments with Orphans option in cleanup job?
I tried it and it makes "too much" clean.
If i upload a custom logo in "preferences" screen (to be viewed at login and in the upper bar), the logo wil be added to attachment table with type "Settings". Next cleaning will clean it after my delay of days.
'OR' => [
[
'parentId' => null,
'parentType!=' => null,
'relatedType=' => null,
],
[
'parentType' => null, (for companyLogo it is null)
'relatedId' => null, (for companyLogo it is null)
'relatedType!=' => null, (for companyLogo it is settings)
]
Somebody experienced the same problem? Maybe i missed something. Any idea welcome.
Maybe we customized something wrong :-/
Comment