Page Caching Query




Wordpress LScache Plugin: Page Caching Query

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, If I use a Switch statement in PHP: switch (n) case label1: code to be executed if n=label1 break case label2: code to be executed if n=label2 break case label3: code to be executed if n=label3 break default: code to be executed if n is different from all labels Will all the codes in my case images will be cached or only one of them? The Switch Case will get the input from the USER Browser, so the condition is variable. Hi, if the input is from URL , like https://domain.com/page?n=label1 , and https://domain.com/page?n=label2 ?etc , in this case, each of them will be cached separatedly however, if not , only first case will be cached and all afterward-request will get same result as first one you can try use ESI block to make it private cache or no-cache on this code. Best regards, Best regards, I will probably use JS instead of PHP on the safer side. I had another question regarding page caching of archives- Do archive pages like taxonomy term pages get cached or not (complete HTML)? Hi, by design , any and all pages generated by WP , unless it is explicitly set to no-cache , then it should be cached Best regards, Ok. Thanks.



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



Reference