Alter view with hook_views_post_render and save results to cache
How can I alter the results of a view with hook_views_post_render but save the altered output to cache, in order to avoid the overhead of altering the results on every request?
The ideal scanario should be like this: Is the cache expired -> Yes -> alter the view’s output -> Save new output in cache, Otherwise don’t alter the output.
This article was republished from its original source.
Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.