PHP no cache impact to other part of the page
-
hi all,
I am using Pods + PHP code snippet inserter as shortcode + shortcode in elementor. I am displaying different pods every day depending on the day (dynamic selection based on date in the pods).
Because of certain caching (in my hosting server or cloudflare, I presume), I need to add no cache code in my PODS php query, like below.
header(“Cache-Control: no-store, no-cache, must-revalidate, max-age=0”);
header(“Cache-Control: post-check=0, pre-check=0”, false);
header(“Pragma: no-cache”);It solve the problem, but wondering whether it will impact other part of the page as well, or only the PODS part (the one contained in the snippet / shortcode).
Any insight will be much appreciated.
Many thanks
Hosana
- The topic ‘PHP no cache impact to other part of the page’ is closed to new replies.