{"id":128455,"date":"2020-08-08T01:56:13","date_gmt":"2020-08-08T04:56:13","guid":{"rendered":"https:\/\/quadlayers.com\/?p=128455"},"modified":"2021-05-19T10:56:29","modified_gmt":"2021-05-19T13:56:29","slug":"clear-oembed-cache-wordpress","status":"publish","type":"post","link":"https:\/\/quadlayers.com\/clear-oembed-cache-wordpress\/","title":{"rendered":"How to Clear oEmbed Cache in WordPress"},"content":{"rendered":"
While publishing content on your site, you might want to embed some YouTube videos, tweets, or even Google Maps<\/a> to make the article unique and helpful for your visitors. In most cases, your server will fetch the embedded content and store it as an oEmbed cache. This is not the basic WordPress caching system but like any other cache, it’s important to clear it regularly. That’s why in this guide, we are going to show you how to clear the oEmbed cache in WordPress<\/strong>.<\/p>\n When you paste a YouTube video URL on your site or use the Gutenberg blocks, WordPress checks the destination URL and searches for the content that needs to be embedded. So, when a visitor goes to the page where you have embedded the video, your server will automatically generate cached files in your website’s database.<\/p>\n This process is possible thanks to the oEmbed cache. It allows a website to display any embedded content without the need to parse the source of the content.<\/p>\n Although you can clear your site’s cache by using any caching plugin<\/a>, you won’t be able to remove the oEmbed cache just like that.<\/p>\n Your web server will store the cache for some time. But, when you need to fetch the updated content, you might want to clear your existing oEmbed cache<\/strong> and generate new ones.<\/p>\n For example, let’s say you have embedded several YouTube videos on your site. In some cases, later on, the YouTube channel owner may update the thumbnail of the video or make some changes to it.\u00a0However, those changes won’t display on your site if you use the old cache.<\/p>\n When you embed the video for the first time, your server fetches all this information from the third-party server, caches the content, and renders it in the frontend. So, clearing the cache will help you fetch the recently updated content from the third-party server. On the other hand, if the code generated through the oEmbed is damaged and you can’t see anything in the frontend, it’s a good idea to clear the cache too.<\/p>\n So now that we better understand the topic, let’s see how to clear the oEmbed cache in WordPress<\/strong>.<\/p>\n Clearing the oEmbed cache in WordPress requires you to follow a series of steps. Here we’ll describe the process step by step<\/strong> so it’s easy to follow even for beginners. Please note that you’ll need access to the MySQL database server as you’ll make some customizations there.<\/p>\n NOTE<\/strong>: Since you are going to make some changes to your site’s tables, for security reasons, we recommend you generate a complete backup of your website before starting the process. If you’re not sure how to do it, check out our guide on how to back up a site<\/a>.<\/p>\n <\/li>\n So, next time a visitor browses through the pages that have embedded videos or images, your server will automatically fetch the new, updated cache from the third-party server. This way, the oEmbed cache gets restored automatically, you don’t need to do anything.<\/p>\n So this is how you can clear the WordPress oEmbed cache in WordPress<\/strong>. If you have followed the steps, you will be able to remove the oEmbed cache in less than 5 minutes. Always remember to create a complete backup of your site before proceeding. As we mentioned at the beginning, this method works for embedded images, videos, and also if you have Google Maps on your site.<\/p>\n If this article was helpful, please share it on social media. For more useful guides, check out our blog section<\/a>.<\/p>\n Do you know any other simple fix for this problem? If you have something, let us know in the comments section below!<\/p>\n","protected":false},"excerpt":{"rendered":" While publishing content on your site, you might want to embed some YouTube videos, tweets, or even Google Maps to […]<\/p>\n","protected":false},"author":6829,"featured_media":128546,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[8191,2652],"coauthors":[3149,1328],"yoast_head":"\nWhat’s the oEmbed cache?<\/h2>\n
Why clear the WordPress oEmbed cache?<\/h2>\n
How to clear the oEmbed cache in WordPress<\/h2>\n
Clear oEmbed cache from cPanel<\/h3>\n
\n
\n
\nA) If you are using a shared hosting plan, you will see it right there under the Databases<\/strong> section.B) On the other hand, if you are using a premium managed WordPress hosting like Kinsta, you will find PHPMyAdmin under your site info section.If you can’t find the PHPMyAdmin tab, feel free to contact your web hosting provider for help and support.<\/li>\n
\n<\/li>\n\n
\n
Conclusion<\/h2>\n