Do not cache blocks or ESI blocks in template – how?
-
Hi all,
I’ve built an awards platform for a client in WordPress which allows users to register and vote on nominations. I use Litespeed plugin with Redis but parts of the voting functionality on the archive pages and the single nomination pages isn’t reflecting the fact that the user has placed a vote. I’ve confirmed that this is because of caching by disabling Litespeed which makes it function correctly. The issue is nothing to do with Object caching, disabling Redis only has no effect.
I’ve been advised that I should look into ‘Do not cache’ blocks for the relevant bits of my templates or to try ESI, however I’ve tried googling for examples and bits of code I might be able to use but can’t really find anything suitable.
Can anyone give me a few pointers how to go about achieving this?
Many thanks
Kevin
- The topic ‘Do not cache blocks or ESI blocks in template – how?’ is closed to new replies.