How do I stop the node from caching

by i am batman   Last Updated July 11, 2018 21:07 PM

Sometimes when I run below code in the hook_preprocess_menu() of a node, I am getting a cached node instead of my current node.

\Drupal::routeMatch()->getParameter('node');

What should I do to stop this?

Tags : 8 nodes


Related Questions



Disable read more link

Updated March 26, 2015 14:02 PM


Node Cancel Button?

Updated May 26, 2015 03:03 AM