Tag Info

New answers tagged

0

You can use transient cache to cache your custom query. Here is a simple code to set_transient cache for your query for 12 hours. In 12 hours WordPress will not make new query but fetch posts from transient. On expiration, it will save new query in transient again for next 12 hours. I have been using transient for many queries on my website but make sure ...


0

I think you're looking for the core function fetch_feed(), your new best friend! From the Codex: Retrieves an external feed and parses it. Uses the SimplePie and FeedCache functionality for retrieval and parsing and automatic caching. and fetch_feed caches results for 12 hours by default. You can modify this by modifying the time interval ...



Top 50 recent answers are included