Prevent caching of specific section




Wordpress LScache Plugin: Prevent caching of specific section

Last Updated on: Wed, 15 Apr 2026 00:00:02
I have a specific section of code, specifically a rand() PHP function that generates a random number. How can I tell LiteCache not to cache this specific section of the code? Hi @mattiasf, you can convert that part of code/function to an ESI, please check on this article for more details.



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference