A popular city guide can receive thousands of views from travellers looking at the same tour options. Sending the same search to Viator for every view adds work for WordPress and increases the chance of hitting a provider limit. PI Viator Affiliate’s Caching tab lets you reuse search results and rendered cards for a limited period. It also shows metrics that help you distinguish regular cache reuse from a configuration problem. This guide walks through a practical cache policy for a site that wants useful listings without making unnecessary upstream requests.
See how caching fits into the PI Viator Affiliate WordPress plugin and its live listings workflow.
Understand the two main cache layers
With Enable Caching selected, the plugin can store normalised search results and reuse them when the same query is requested again. Pagination, filters and API settings can give queries different cache identities. The Listing HTML Cache option also lets WordPress reuse the rendered cards. The HTML entry cannot extend the freshness of the source search. Think of the result cache as reusable data and the HTML cache as reusable presentation. A change to how a card is displayed may require new HTML even when its results remain useful. These plugin caches operate separately from any cache that serves a whole WordPress page.
Choose an expiry your workflow can support
Open Caching and review Cache Expiry. The setting ranges from one minute to one hour in the current plugin. For a site testing new filters, a shorter duration can make development iterations easier. For an established set of high-traffic landing pages, a longer option can reduce repeat calls. Decide with the editorial context in mind. A traveller may see a starting price on a card and will ultimately confirm the offer and availability on Viator. Avoid letting an independent page cache hold rendered prices longer than your site intends, because that cache can return a whole page without WordPress consulting the plugin at all.
Test cache reuse with one known search
Choose a simple destination listing, then view it and reload the same public page. In the Caching tab, compare entries and metrics for Live API Results and Listing HTML. You may see a miss and store on the first request and a hit on another request that runs through WordPress while the entry is fresh. If every hit is served by a page cache, the plugin may see no new traffic from your browser. If you change the page number, add a tag or alter the query, expect a different response entry. A controlled test should keep the query, page and credentials the same while varying as little else as possible.
Read hits, misses, stores and errors together
A hit means a cached item was reused. A miss can be normal for a new destination, a newly requested page or an expired search. A store confirms that the plugin wrote an entry after processing the request. Use the error count with the last API status to understand bursts of failures. A rising number of misses on many new landing pages might be an expected outcome of a rollout. Repeated API errors on the same baseline search need a different investigation. Check the token, environment and applicable endpoint access. Reset Metrics when you want a clean measurement period, and note the starting time so the team can compare like with like.
Use targeted invalidation first
If a card has an outdated visual presentation, look at Flush Listing HTML Cache or delete a specific tracked entry where appropriate. Use Flush Live & All Caches when you need fresh results or want to invalidate the listing and location layers together. The provider category cache has its own refresh cadence, and upstream cooldowns remain in force. Clearing everything repeatedly can increase cold traffic and obscure what caused the original problem. If a CDN or site cache serves older HTML after a plugin edit, use the page cache’s specific purge tools for the affected URLs. Confirm the changes while logged out to see what ordinary readers receive.
Set a practical request budget
API Requests per Minute is a site-wide outbound budget. Viator account and endpoint limits also apply. A cache hit can avoid a new request, while a cold search and optional location lookups may use more of the budget. When you enable several new location pages or increase the number of distinct campaign and filter combinations, observe traffic and requests. Avoid raising the local budget just because an upstream limit appeared. Wait for the cooldown where applicable and review whether many short-lived queries or a broad rollout drove the traffic. Be prepared for a busy cold-cache request to omit an automatic grid temporarily.
Review busy pages after changes
Create a short routine for important tour hubs. After a settings change, open one populated guide and one page that had sparse results, then check the status and cache entries. Review whether cards are still accurate enough for a sensible trip-planning decision and whether the booking links reach Viator. Where you use Business or Developer warming, remember the schedule is for selected published page assignments and uses the same budget as regular requests. Monitor the last run alongside reader traffic. With clear expiry, measured invalidation and a reasonable budget, you can keep the experience grids useful as the site grows.







