• Hello,

    I love this plugin! It has greatly decreased the load time of my pages.

    I have a small problem, though. When I use a playlist URL (e.g., httpv://www.youtube.com/playlist?list=xxxxxxxxxxxxxxx), the default image is that of a random, 2-year-old video instead of the most recent video that was posted a week ago. How can I get WP YouTube Lyte to use the most recent video to generate the default image?

    NOTE: I have already emptied WP YouTube Lyte’s cache.

    • This topic was modified 9 years, 1 month ago by jasonbear.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Frank Goossens

    (@futtta)

    morning @jasonbear;
    WP Youtube Lyte uses the thumbnail for the playlist as received from the youtube API, so the thumbnail would only be updated if the thumbnail URL is updated in YT’s API response, but I have no idea when this would happen (or not happen) I’m afraid.

    But … it _could_ be that there’s a problem with the cache not _really_ being emptied (seen this happen), so you could try add the playlist in a test-post to see if you see the correct thumbnail there?

    frank

    @futtta – I had this error occur yesterday for me as well and clearing the cache via cron and other methods that previously worked, no longer cleared the cache. I went into the dashboard and cleared the cache through WP YouTube Lyte settings and it did not work either. I have several hundred videos in my playlist FYI. I am going to install the latest dev-version from GitHub and record the results. Thanks! 🙂

    @futtta – Installed the GH version and the cache issue still persists.

    I am now clearing the cache by using MySQL/MariaDB’s event_scheduler function to directly clear meta_value of meta_key _lyte_xxxx under wp_postmeta.

    This immediately works and begins to display the correct image. Wish I did not have to jump through these hoops to avoid 500kB of youtube files loading on embed. Haha. 🙂

    EDIT:

    'CREATE EVENT 
    ON SCHEDULE EVERY 1 DAY
    STARTS '2017-04-11 00:00:00'
    DO
    UPDATE  'my_wp_database'.'wp_postmeta' SET  'meta_value' =  '' WHERE  'wp_postmeta'.'meta_id' =11950;'
    • This reply was modified 9 years, 1 month ago by inktvusa.
    Thread Starter jasonbear

    (@jasonbear)

    Excellent, BrotherS! Now, how do we directly clear meta_value of meta_key _lyte_xxxx under wp_postmeta by way of the WordPress admin?

    🙂

    @jasonbear – You could theoretically use a plugin like SQL Executioner, but if you are not comfortable with databases, you can destroy your website. I would advise against using it if you are not comfortable. Thanks!

    Plugin Author Frank Goossens

    (@futtta)

    nice one BrotherS 🙂

    the trick explained in this blogpost is somewhat less risky 🙂

    @futtta @jasonbear – I decided to share the script I am using since it seemed people are not comfortable with working directly with databases.

    https://pastebin.com/JcPJjnjw

    Hope this helps, it is the easiest way I could do it. It has been working flawlessly for me. 🙂

    Cheers!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Default playlist image is outdated’ is closed to new replies.