• Resolved Benjamin Pick

    (@benjamin4)


    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.

Viewing 1 replies (of 1 total)
  • Plugin Author webheadcoder

    (@webheadllc)

    Thanks for the workaround! I’m trying to limit what goes into the plugin based on active installs and amount of requests. I’ll add the code when the plugin gets more popular or if more requests come in.

    Thank you for the code and allowing others who find this to have an immediate fix.

Viewing 1 replies (of 1 total)
  • The topic ‘WP YouTube Lyte not supported (fix included)’ is closed to new replies.