Changeset 3100152
- Timestamp:
- 06/09/2024 06:48:04 PM (2 months ago)
- Location:
- artiss-transient-cleaner/trunk
- Files:
-
- 6 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
artiss-transient-cleaner/trunk/artiss-transient-cleaner.php
r3057738 r3100152 3 3 * Transient Cleaner 4 4 * 5 * @package Artiss-Transient-Cleaner5 * @package leaner 6 6 * @author David Artiss 7 7 * @license GPL-2.0-or-later … … 10 10 * Plugin URI: https://wordpress.org/plugins/artiss-transient-cleaner/ 11 11 * Description: Clear expired transients from your options table. 12 * Version: 1. 6.212 * Version: 1. 13 13 * Requires at least: 4.4 14 14 * Requires PHP: 7.4 … … 27 27 */ 28 28 29 30 31 32 33 34 29 35 // Define global to hold the plugin base file name. 30 36 … … 33 39 } 34 40 35 $functions_dir = plugin_dir_path( __FILE__ ) . 'inc ludes/';41 $functions_dir = plugin_dir_path( __FILE__ ) . 'inc/'; 36 42 37 43 // Include all the various functions. 38 44 39 require_once $functions_dir . 'clean-transients.php'; // General configuration set-up.45 require_once 40 46 41 require_once $functions_dir . 'shared-functions.php'; // Assorted shared functions.47 require_once 42 48 43 if ( is_admin() ) { 49 require_once plugin_dir_path( __FILE__ ) . 'inc/settings.php'; 44 50 45 include_once $functions_dir . 'set-admin-config.php'; // Administration configuration. 46 47 } 51 require_once plugin_dir_path( __FILE__ ) . 'inc/shared.php'; -
artiss-transient-cleaner/trunk/readme.txt
r3057738 r3100152 1 1 === Transient Cleaner === 2 2 Contributors: dartiss 3 3 4 Tags: cache, clean, database, options, transient 4 5 Requires at least: 4.4 5 6 Tested up to: 6.5 6 7 Requires PHP: 7.4 7 Stable tag: 1. 6.28 Stable tag: 1. 8 9 License: GPLv2 or later 9 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html 11 10 12 11 13 Clean expired transients from your options table. The original and best! … … 17 19 **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.** 18 20 21 22 23 24 25 19 26 "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." 20 27 … … 24 31 25 32 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. 26 27 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](http://www.staze.org/wordpress-_transient-buildup/ "WordPress _transient buildup") for ensuring the proposed solution made sense, and [W-Shadow.com](http://w-shadow.com/blog/2012/04/17/delete-stale-transients/ "Cleaning Up Stale Transients") for the cleaning code.28 29 Iconography is courtesy of the very talented [Janki Rathod](https://www.fiverr.com/jankirathore) .30 33 31 34 == The Settings Screen == … … 52 55 * `clear_all_transients` - this will remove any and all transients, expired or otherwise 53 56 57 58 59 60 61 62 54 63 == Installation == 55 64 56 Transient Cleaner can be found and installed via the Plugin menu within WordPress administration (Plugins -> Add New). Alternatively, it can be downloaded from WordPress.org and installed manually... 57 58 1. Upload the entire `artiss-transient-cleaner` folder to your `wp-content/plugins/` directory. 59 2. Activate the plugin through the 'Plugins' menu in WordPress administration. 60 61 Voila! It's ready to go. 65 This plugin can be found and installed via the Plugin menu within WP Admin (Plugins -> Add New). Alternatively, it can be downloaded from WordPress.org and installed manually... 66 67 1. Upload the entire unzipped plugin folder to your `wp-content/plugins/` directory, either from WP Admin (Plugins -> Add New), your favorite FTP client or any other file manager 68 2. Activate the plugin through the 'Plugins' menu in WP Admin (Plugins -> Installed Plugins) 62 69 63 70 == Frequently Asked Questions == … … 84 91 85 92 I use semantic versioning, with the first release being 1.0. 93 94 95 96 97 86 98 87 99 = 1.6.2 = … … 198 210 == Upgrade Notice == 199 211 200 = 1. 6.2=201 * Fixed a bug in the settings screen212 = 1. = 213 *
Note: See TracChangeset
for help on using the changeset viewer.