• I’m developing a country restrict plugin that filters the posts/pages a visitor can access/see based on where the visitor is (the visitors country code). This all works perfectly well when I do not cache posts/pages using caching plugins like W3 Total Cache, WP Super Cache, etc.

    The two character country code of the current visitor is saved in a session or requested from an IP service if not set.

    Therefore, in WordPress I need a way to tell the caching engines to cache posts/pages per country. E.g., in a page, http://www.mysite.com/mypage, with a loop showing all posts, I would like to cache a US version, a UK version, a DE version, etc. as certain posts in the loop might be filtered based on the country code of the visitor.

    http://wordpress.org/plugins/w3-total-cache/

The topic ‘Cache posts/pages per country’ is closed to new replies.