WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
WP Super Cache & YouTube API (4 posts)

  1. IstanbulMMV
    Member
    Posted 2 years ago #

    Hello. On my blog I am using the YouTube API to embed videos from a playlist (maximum 50 videos per playlist). Each playlist is updated three or four times per day with 10 or so new videos added each time until a 50 video maximum is reached (whereupon I create a new playlist).

    Calling the YouTube API is quite resource intensive and I was wondering if a caching plugin would improve page rendering performance? Should I look to use something like WP Super Cache on my site or will I strike problems due to each playlist being updated several times throughout the day?

    Any guidance/suggestions very much appreciated.

  2. Donncha O Caoimh
    Member
    Plugin Author

    Posted 2 years ago #

    Yes it will help, but you need to change how you fetch the playlist - use a wp-cron job perhaps and cache the list locally if you're not doing so.

  3. IstanbulMMV
    Member
    Posted 2 years ago #

    Many thanks for the speedy response Donncha. Off now to do some Googling on cron jobs and local caching... Cheers

  4. skippybosco
    Member
    Posted 2 years ago #

    @IstanbulMMV: Where is the API called from? Is it called from Javascript within your post? If so, caching the posts will not provide any value since the cached post will just include the javascript to the API, not the resulting code that is rendered on the client side.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic