Trigger to clear Matrix cache and then Squid cache not working


(Pjgreen) #1

We are trying to get a trigger to work that will clear the cache for a list of news items on a search asset listing for both Matrix and the Squid cache when a news item has been added.

 

It seems to work intermittently and I have tried several variations to see when it works and not. Looking at the logs the Matrix cache says it has cleared and the Squid purge has also says it is successful even though the news items are not showing - only if I manually _recache the search asset listing does the new news item display on the page.

 

 

 

Running Matrix 4.18.2, on Chrome and IE.

 

Event - Status change

Conditions -

Asset type - news item,

Asset status being changed to Live,

Actions -

Clear Matrix Cache  (on a selected asset news listing asset)

Clear Squid Cache  (on a selected asset news listing asset)

 

I have tried separating the matrix and the squid cache triggers and that doesn't work either

 

Any ideas?

 


#2

Is the search listing nested into a standard page?
Also is indexing in the search manager on? If it’s off you’ll need to turn it on reindex the assets .


The support team will probably provide a more succinct answer.


(Pjgreen) #3

Thanks for the advice - we got around this by call a rest resource in the Trigger to run _recache on the search listing


Doing a /_recache using a trigger