Score:0

Caching Views with altered query

mz flag

I have a view showing on taxonomy terms which shows popular nodes from same category of taxonomy terms.

Category - Taxonomy Terms - Nodes

Lets say Term A and Term B both are same category. On Term A page, we display popular nodes from Term B and other terms in same category.

This is done by modifying view query using hook_views_query_alter.

We can't find a way to successfully cache the output of this as there is no clear argument to be used as cache_id.

I have tried using Views Custom Cache module but it produces erratic results.

Any other ideas to cache this view?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.