Exclude some page elements from cache
-
Is there a way to exclude only certain elements from caching? For example, on one website I would like to show random banners on posts, but as these are outputted to the page (not loaded dynamically via javascript), the same banner always appears for that post after the cache is created. On another site I would like to show a random selection of related posts on each post page, but again after the cache is created the same posts are always shown. There are many other situations where this might be an issue.
What I’m imagining is a way to include code in my HTML (e.g., comments that flag the beginning and end of an element that should not be cached, or perhaps a CSS class or other attribute that would have the same effect) that would exclude parts of the page from being cached.
Is there a way to do this?
THANKS for the great plugin!
- The topic ‘Exclude some page elements from cache’ is closed to new replies.