GID for deleted objects
GID for deleted objects
- Subject: GID for deleted objects
- From: OCsite via Webobjects-dev <email@hidden>
- Date: Mon, 15 Jun 2020 12:14:53 +0200
Hi there,
I've just bumped into another problem which seems it should be pretty common,
but I can't see a decent solution (due to my blindness quite probably).
I am caching some information for EOs; the info is EC-independent, and
therefore the cache is keyed by global IDs.
When an EO is successfully deleted, I want to remove the info from the cache.
Thus, the cache observes EditingContextDidSaveChangesNotification and would
remove the userInfo[EOObjectStore.DeletedKey] objects.
The problem is that these objects are already unregistered from the EC and I
can't get their GIDs anymore.
Is there a decent known solution of this problem? I probably can do something
like storing GIDs of objects which are only being deleted somewhere and use
these stored GIDs later when the deletion succeeds, but that seems to be rather
at the complex and awkward side for a conceptually simple operation. Do I
overlook some simpler solution, or is this indeed the only way?
Thanks,
OC
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden