Chapter 11: Fetching, Caching, and Regularly Updating External Site Data
After spending most of our time learning how to extend WordPress to allow site administrators and users to create local content, this chapter focuses on interacting with external data sources. While we did some work with displaying Twitter feed content in the Creating a new shortcode with parameters recipe in Chapter 2, Plugin Framework Basics, we had very little control over how this data was displayed since the content was shown in an IFrame. We also had no control over how this data was fetched and no way to cache it. The reason for this is that every user loading a page containing the Twitter feed shortcode fetched their own copy of the information to be displayed. ...
Get WordPress Plugin Development Cookbook - Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.