WordPressplugin and theme developers often use Transients to store timely information in your database to speed up your site. If you’re in the process of building your site, and you realize that certain elements like popular posts or twitter widgets are not changing, then you probably tried emptying your cache only to realize that doesn’t do anything. In this article, we will show you how to manage and delete transients in WordPress without going into your database.
What are Transients?
The Transients API allows developers to store information in your WordPress database with an expiration time. This help speeds up your site and keeps your server load down.
For example in aFloating Social Barplugin, you would retrieve and store social media counts for posts. You would also use transients to have the counts update every 30 minutes.
If you don’t use transients, then your server will need to connect with all social networks on each page load which will slow down your site significantly.
That’s why transients are awesome.
So why would you ever want to manage or delete transients? Well, things can go wrong sometimes. Let’s say a connection between Facebook and your site didn’t go so well, and now it’s showing a count of 0. You can wait 30 minutes or clear out the transient and get the accurate count.
It also helps when testing a plugin to make sure that it’s really working like it is supposed to. Last but not least, you may want to delete expire transients to clear out your database.
The Delete Expired Transients Plugin by WebAware allows you to view, search, edit, and delete transients from your WordPress admin without ever entering the database options table.
Simply install and activate the plugin. Upon activation, it will add a new menu item underTools » Transients. You can see all your transients listed there.
It will also add a new menu item under Tools » Delete Transients. On that page, it will show you the expired transients and the total number of transients. You can easily bulk delete expired transients from this screen.
We hope this article helped you manage and delete transients in WordPress without ever entering your database.
Truth be told, it’s difficult for a web application that doesn’t have some kind of identification, even if you don’t see it as a security measure in and of itself. The Internet is a kind of lawless land, and even on free services like Google’s, authentication ensures that abuses will...
Although data persistence is almost always a fundamental element of applications, Node.js has no native integration with databases. Everything is delegated to third-party libraries to be included manually, in addition to the standard APIs. Although MongoDB and other non-relational databases are the most common choice with Node because if you...