You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The above queries delete the transient and the transient timeout
335
+
// thus each transient is counted twice.
336
+
$count = $count / 2;
337
+
302
338
if ( $count > 0 ) {
303
339
WP_CLI::success( "$count transients deleted from the database." );
304
340
} else {
305
-
WP_CLI::success( "No transients found." );
341
+
WP_CLI::success( 'No transients found.' );
306
342
}
307
343
308
-
if ( $_wp_using_ext_object_cache ) {
309
-
WP_CLI::warning( 'Transients are stored in an external object cache, and this command only deletes those stored in the database. You must flush the cache to delete all transients.');
344
+
if ( wp_using_ext_object_cache() ) {
345
+
WP_CLI::warning( 'Transients are stored in an external object cache, and this command only deletes those stored in the database. You must flush the cache to delete all transients.');
0 commit comments