#1 March 24, 2022 4:50pm

tsamant
Member
From: Chicago
Registered: May 14, 2015
Posts: 52

View stuck on the cached value

Hello,

I recently changed the filter function of a module view, and now the view seems to be stuck in a single state. I.e., publishing new items doesn't change the view.

(The new published items do pass the filter; they should show up.)

I am trying to debug this and wonder if there is some obvious error in the filter function?

If I change the filter function to something else and change it back, the view is refreshed and shows exactly the expected items. But publishing an item never updates the view. Fwiw there is a publish hook as well, but it has not changed for a long time and hasn't been a problem.

Any pointers?

Best,
Tushar

Offline

#2 March 25, 2022 3:16pm

doon.mok
Member
Registered: May 6, 2015
Posts: 144

Re: View stuck on the cached value

You might have to truncate the bigtree_module_view cache table.

Offline

#3 March 29, 2022 4:02pm

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 978

Re: View stuck on the cached value

If I had to take a guess I'd say the filter function is crashing. It's run in an eval() statement so it will fail silently but the record could miss getting into the table.

Offline

#4 April 11, 2022 9:38am

tsamant
Member
From: Chicago
Registered: May 14, 2015
Posts: 52

Re: View stuck on the cached value

Tim, I will take a look and let you know. Thanks!

doon.mok, did not mean to ignore you. Sorry about that, and thanks for the suggestion. Truncating worked, but only once.

Tushar

Offline

#5 April 11, 2022 10:14am

tsamant
Member
From: Chicago
Registered: May 14, 2015
Posts: 52

Re: View stuck on the cached value

Addendum: since there is no obvious reason why the filter function would crash (though it might be, or incorrectly returning false), I'd also like to know:

There is a custom publish hook for this module. Does it need to clear cache explicitly?

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.