We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f90beae commit 07a7689Copy full SHA for 07a7689
includes/class-plugin.php
@@ -1207,15 +1207,18 @@ public function register_shutdown_hooks() {
1207
}
1208
1209
/**
1210
- * Registers all hooks associated with the shutdown hook
+ * Delete all transients if the cache was enabled successfully.
1211
+ * Callback for `redis_object_cache_enable` action.
1212
*
1213
* @param bool $result
1214
* @return void
1215
*/
1216
public function maybe_delete_transients( $result ) {
1217
global $wpdb;
1218
- if ( ! $result ) { return; }
1219
+ if ( ! $result ) {
1220
+ return;
1221
+ }
1222
1223
$wpdb->query( $wpdb->prepare(
1224
"DELETE FROM {$wpdb->options} WHERE option_name LIKE %s OR option_name LIKE %s",
0 commit comments