Bruno17 / MIGX

MIGX for revo 2.2 and above
83 stars 78 forks source link

MIGxDB CMP - Empty Trash shows cached (already deleted) entries #245

Closed sebastian-marinescu closed 8 years ago

sebastian-marinescu commented 8 years ago

Hi Bruno,

in a CMP made with MIGxDB I have a list of objects which can also be deleted.

When deleting it and looking into the trash-view, I see the deleted items. Emptying the trash doesn't seem to work, because after that I can still see the entries in the trash-view, but actually it deletes the entry, so no problem with the processor.

But the T(h)rash-View isn't updated. Even when I reload the window, the already deleted entry persists. If I manually clear the cache and reload the cmp, then the trash is empty.

Bruno17 commented 8 years ago

hmm... never have seen an issue like that, where you need to clear the cache to see changes in a CMP-grid. Do you have some special db-caching?

sebastian-marinescu commented 8 years ago

Nothing special, but I have this setting activated:

cache_db

And I can confirm that after deactivating it, the trash view updates immediately. Hm.

So do you think there is a solution to this with activated db-cache? Maybe the processor for listing could query the db after emptying the trash without caching? Or maybe after emptying the trash MIGx should clear the cache?

Bruno17 commented 8 years ago

try to add this lines, to clear the cache in that processor

sebastian-marinescu commented 8 years ago

I was actually getting used to Thrash :laughing:

I'll test it now and will let you know if it works :+1:

But out of curiosity, why do you delete in all contexts? And also why all the other cache partitions?

sebastian-marinescu commented 8 years ago

@Bruno17 works like a charm :sunglasses: Thanks When do you think this fix could be published?

Bruno17 commented 8 years ago

uncached snippet-calls with that records might be used in every context.

sebastian-marinescu commented 8 years ago

Okay, I see. Thanks :)