- Issue created by @dieterholvoet
- π§πͺBelgium dieterholvoet Brussels
Maybe it could help to get rid of
PhpStorageFactory::get('trash')->deleteAll();
inTrashEntityTypeManager::clearCachedDefinitions()
? Is there any reason these files need to be regenerated on every cache rebuild? - π§πͺBelgium dieterholvoet Brussels
You would think that regenerating the class suffix when deleting existing classes would prevent this issue. Maybe this only happens when someone visits the site between
PhpStorageFactory::get('trash')->deleteAll();
and\Drupal::state()->delete('trash.class_suffix');
? I'll switch these two lines and see if the issue still happens. - Merge request !25Delete the class prefix before deleting the classes β (Closed) created by dieterholvoet
- π·π΄Romania amateescu
FWIW, I added some `sleep()` calls in that code, executed
drush cr
anddrush updb -y
from the CLI, then browsed the site while the commands were still running, and I didn't bump into that error.However, if you find that the MR makes a difference in your case, I've no problem with merging it :)
- π§πͺBelgium dieterholvoet Brussels
No it doesn't, the issue happened again since adding the patch.
- Status changed to Needs review
3 months ago 10:12am 9 September 2024 - Status changed to Postponed: needs info
3 months ago 10:40am 9 September 2024 - πΊπΈUnited States SocialNicheGuru
Sorry I was looking at this link and thought there was something to review: https://git.drupalcode.org/project/trash/-/merge_requests/25/diffs?commi...
- Status changed to Closed: cannot reproduce
3 months ago 11:06am 9 September 2024 - π·π΄Romania amateescu
I think that commit only reverts the initial commit from the MR.
I'm going to close this issue. @DieterHolvoet, please feel free to re-open it if you managed to get more info about this.