stwe / DatatablesBundle

This Bundle integrates the jQuery DataTables plugin into your Symfony application.
355 stars 236 forks source link

Invalidate Result cache? #987

Open stephanvierkant opened 2 years ago

stephanvierkant commented 2 years ago

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?

Eloar commented 2 years ago

How do you change data?

Seb33300 commented 2 years ago

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.

stephanvierkant commented 2 years ago

How do you change data?

I'm changing the data with a Symfony Form