Transient Cleaner
Clean expired transients from your options table. The original and best! Transient housekeeping was added to the core of WordPress after version 5.8. However, I have decided to open up this plugin to all versions to allow for manual transient cleaning. Longer term I am working on a new version of the plugin, designed specifically for all WordPress releases. Tested up to PHP 8.2 Fully complies with WordPress coding standards Compliant with the stronger WordPress VIP coding standards, as well as compatibility with their platform Community plugin – visit the Github page to get involved with the latest code development, request enhancements and report issues “Transients are a simple and standardized way of storing cached data in the WordPress database temporarily by giving it a custom name and a timeframe after which it will expire and be deleted.” Unfortunately, expired transients only get deleted when you attempt to access them. If you don’t access the transient then, even though it’s expired, WordPress will not remove it. This is a known “issue” but due to reasons, which are explained in the FAQ, this has not been adequately resolved. Why is this a problem? Transients are often used by plugins to “cache” data (my own plugins included). Because of this it means that expired data can be left and build up, resulting in a bloated database table. Meantime, this plugin is the hero that you’ve been waiting for. Simply activate the plugin, sit back and enjoy a much cleaner, smaller options table. It also adds the additional recommendation that after a database upgrade all transients will be cleared down. The Settings Screen Within Administration -> Tools -> Transients an options screen exists allowing you to tweak when you’d like cleaning to happen, including the ability to perform an ad-hoc run, and when you’d like the to be automatically scheduled. You can even request an optimization of the options table to give your system a real “pep”! Running in Lite mode A “lite” mode is available. By activating this the options screen will no longer appear and default settings will be used. The advantage? Improved performance to Admin and, especially if you’re running multi-site, no chance of anybody “tinkering” with the settings. To activate, use the following… define( 'TC_LITE', true ); This should be added to your wp-config.php file. Using hooks If you’re the type of odd person who likes to code for WordPress (really?) then I’ve added a couple of hooks so you can call our rather neat cleaning functions… housekeep_transients – this will clear down any expired transients clear_all_transients – this will remove any and all transients, expired or otherwise Acknowledgements I’d like to thank WordPress Developer Andrew Nacin for his early discussion on this. Also, I’d like to acknowledge the useful article at Everybody Staze for ensuring the proposed solution made sense, and W-Shadow.com for the cleaning code. Iconography is courtesy of the very talented Janki Rathod.
Top keywords
- transients10×2.00%
- wordpress8×1.60%
- expired6×1.20%
- options5×1.00%
- cleaning4×0.80%
- table4×0.80%
- added3×0.60%
- code3×0.60%
- data3×0.60%
- database3×0.60%
- expired transients3×0.60%
- options table3×0.60%
Blizhost CloudCache Purge – Speed, Security, and Optimization
🚀 Blizhost CloudCache Purge: Speed, Security, and Performance for Your WordPress Site Blizhost CloudCache Purge is the essential plugin for those seeking speed, enhanced security, and optimized SEO for WordPress sites. Exclusive to Blizhost customers, this plugin integrates with CloudCache, a powerful and optimized solution for high-traffic websites, designed to significantly improve performance and protect your site from threats. 🎯 Why Use Blizhost’s CloudCache? Extreme Speed: CloudCache delivers your site’s content directly from the server’s RAM, enabling loading speeds up to 300x faster. Enhanced Security: Robust protection against brute force attacks, exploitable vulnerabilities, and unauthorized access attempts to administrative pages. Optimized SEO: Loading speed is a crucial factor for Google rankings and other search engines. With CloudCache, your site becomes significantly faster, improving its ranking in search results. High Performance under Heavy Traffic: Perfect for high-traffic sites, CloudCache ensures your site remains stable and fast, even during traffic spikes. Built for HTTP: Unlike solutions such as Squid, Apache, or Nginx, CloudCache is 100% focused on the HTTP protocol, maximizing performance for WordPress sites. 🔒 Top-notch Security and Performance CloudCache offers advanced protection, with features similar to services like Sucuri and Cloudflare, ensuring your WordPress site is secure and running at peak performance: Brute Force Attack Protection: Prevents malicious login attempts to the WordPress admin area by limiting the number of failed access attempts. Vulnerability Exploit Defense: Automatically monitors and blocks attempts to exploit known vulnerabilities in WordPress and its plugins. DDoS Mitigation: Protects your site from distributed denial-of-service (DDoS) attacks, keeping it available even during malicious traffic surges. Security Rules: Advanced filtering to block malicious traffic before it reaches your site. Sensitive Page Protection: Additional security layer for critical areas, such as login and admin pages. 💡 Immediate Benefits of Blizhost CloudCache Purge Automated and Intelligent Caching: Whenever you publish, edit, or delete a post, page, or comment, the cache is automatically updated, ensuring that changes are quickly and accurately reflected. Full WordPress Compatibility: The plugin seamlessly integrates your WordPress with Blizhost’s CloudCache, optimizing both speed and security. SEO Improvement: Site speed is a critical factor for SEO, and with CloudCache, you’ll experience fast and efficient loading, helping boost your rankings on Google. 🔧 How Does Blizhost CloudCache Purge Work? Automatic and Intelligent Cache Clearing: The cache is automatically updated when you make changes to content, such as posts, pages, or comments. Relevant pages like sitemaps are also refreshed, ensuring that changes are reflected. When important settings like title, description, or modifications to the WordPress Customizer are made, the entire cache is cleared, ensuring that your site reflects all changes correctly. Manual Cache Control: The cache can be manually cleared via simple buttons in the WordPress dashboard or toolbar, giving you full control over cache behavior. 🌟 What is CloudCache? CloudCache is an exclusive technology from Blizhost, inspired by systems used by major companies like Wikipedia, The New York Times, Facebook, and Twitter. It delivers your site’s content directly from the server’s RAM, resulting in ultra-fast loading, ideal for high-traffic websites. 🧩 Full Compatibility with Plugins and Themes The Blizhost CloudCache Purge is fully compatible with key tools in the WordPress ecosystem, including: WooCommerce: For high-performance online stores. Cloudflare: Integration with the CDN and security features. All caching plugins: Including LiteSpeed Cache, W3 Total Cache, WP Rocket, and WP Super Cache. AMP: Full support for Accelerated Mobile Pages (AMP). Page Builders: Compatible with Elementor, Divi, WPBakery, and more. Form Plugins: Such as Contact Form 7, Gravity Forms, WPForms, etc. Note: This plugin was developed exclusively for Blizhost customers. Using it on other hosting providers will not bring the same benefits, as CloudCache was created to operate within our optimized infrastructure, ensuring speed, security, and support for high traffic.