DatatablesBundle icon indicating copy to clipboard operation
DatatablesBundle copied to clipboard

Invalidate Result cache?

Open stephanvierkant opened this issue 1 year ago • 3 comments

I'm using the Result cache (Resources/doc/cache.md) but when I change the data, the cache doesn't invalidate. I'm using Docrtrine Cache on multiple places in my application and it works as expected, but for Datatables cache invalidation doesn't work.

Anyone found out how to invalidate the Doctrine cache that this library uses?

stephanvierkant avatar Oct 05 '22 07:10 stephanvierkant

How do you change data?

Eloar avatar Oct 05 '22 08:10 Eloar

Yeah, doctrine cache only works when data is updated with doctrine. If you update the data directly in the database, the cache will not be invalidated.

Seb33300 avatar Oct 05 '22 08:10 Seb33300

How do you change data?

I'm changing the data with a Symfony Form

stephanvierkant avatar Oct 05 '22 09:10 stephanvierkant