Exclude part of template with ESI from cache
-
Hello,
We have a website build with WordPress and custom made PHP templates.
I’m reading and searching a lot on the internet for a solution to make a “fragment” of our template “not cachable” or at least set a different TTL.
Now I read a lot about ESI but I don’t know how to use it in my specific situation.
To give you an example:
<!doctype html> <html> <head> <meta charset="utf-8"> <title>Example</title> </head> <body> <div class="public-cache"> <p>This content is public and part of the whole site cache</p> </div> <div class="private-cache"> <p>This content is PRIVATE and should be cached with another TTL</p> </div> </body> </html>
How can I made a part of my template code (div) not part of the public cache and give it another TTL?
Is something like this even possible like this?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Exclude part of template with ESI from cache’ is closed to new replies.