WP YouTube Lyte not supported (fix included)
-
As this plugin purges the cache (removing the files from the cache folder), but does not take into account that YT Lyte has metadata that should be purged as well, I sometimes run into the weird state that the YT thumbnails are not found. This should be reproducible:
1. Enable the option “lyte_local_thumb” in the backend of YT Lyte
2. Add a youtube video that you own into some site
3. Call the site so it loads the local thumbnail (check that the thumbnail is served from the WordPress site, not from YT directly)
4. Change the thumbnail of the YouTube video in your YT account
5. Click “Clear cache now!”
6. You see now an error thumbnail of youtube, as if the video did not have any thumbnail at all. The reason is that the URL of the Thumbnail at the YT side of things has changed.Workaround:
add_action('ccfm_clear_cache_for_me_before', function() { if (function_exists('lyte_rm_cache')) { lyte_rm_cache(); } });
Please consider adding the code inside the function to the plugin.
- The topic ‘WP YouTube Lyte not supported (fix included)’ is closed to new replies.