• Resolved dogel

    (@dogel)


    Hi,

    I am using YouTube Lyte on two different websites with the exact same settings, but it behaves differently: On a website where I have “Disable Gutenberg” installed to avoid the block editor, everything works as expected. I.e. the Youtube thumbnail images are being saved in Lyte’s cache, and so no connection to youtube.com, youtu.be, ytimg.com or similar is made when pages are loaded which contain an embedded YT video.

    However, on another website (see added link) the block editor / Gutenberg is used, and there are four youtube embed blocks in there. However, opening the browser console to display requests I see four lines saying “301 Moved Permanently” for each of those thumbnail images, followed by four GET requests to “https://i.ytimg.com/…”, i.e. a youtube server.

    Is there anything I can do to avoid that? (My reason for using YT Lyte is GDPR compliance, which won’t be given that way)

    (sidenote: This is a very old website which I transformed into a WP site recently – I know that the HTML structure is semantically bad and some of the CSS is pretty outdated, but it works and there’s not enough budget to redo everything. Also, the client want to keep the layout as is. I wouldn’t do it that way anymore, but all that isn’t subject of my question…)

    • This topic was modified 3 years, 8 months ago by dogel.
    • This topic was modified 3 years, 8 months ago by dogel.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    typically the “cached thumbnail” logic redirects to the original one if the local cache did not work for one reason or the other. the most common reason is filesystem permissions, so maybe check those?

    Thread Starter dogel

    (@dogel)

    Hmm – the “wp-youtube-lyte” directory has file permission set to 755, the “lyteCache.php” file has 644 (as all other files and directories which I can see). I chose “Empty WP YouTube Lyte’s cache” several times and resaved the preferences.

    Is there a directory where these thumbnails are saved whose file permissions I could check?

    And when is the cached version created – only when the video is inserted in the editor, or also when “Empty WP YouTube Lyte’s cache” is chosen?

    • This reply was modified 3 years, 8 months ago by dogel.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, can you check wp-content/cache/lyteCache/ permissions for PHP/ webserver user?

    Thread Starter dogel

    (@dogel)

    There is no “cache” directory in “wp-content”…

    Should I create one or should that happen automatically if a plugin needs it?

    • This reply was modified 3 years, 8 months ago by dogel.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    it _should_ happen automatically, if the PHP/webserver user has the right permissions to do so?

    Thread Starter dogel

    (@dogel)

    Okay, I succeeded to change the general file permissions (as you wrote: for web server user instead of FTP user), the directory was created and so were the thumnails.

    Thank you very much for your help!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome, feel free to leave a review of the plugin and support here! ??

    Thread Starter dogel

    (@dogel)

    ?? I already gave it a 5-star review quite a while ago. Sorry I can’t vote again…

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    ah, didn’t check, thanks for the 5 stars anyway! ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Cached YT thumbnail images not found when using block editor’ is closed to new replies.