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 7db6db3 commit a6513beCopy full SHA for a6513be
includes/class-plugin.php
@@ -80,13 +80,26 @@ private function __construct() {
80
$this->screen = 'settings_page_redis-cache';
81
}
82
83
+ $this->run_migrations();
84
$this->add_actions_and_filters();
85
86
if ( is_admin() && ! wp_next_scheduled( 'rediscache_discard_metrics' ) ) {
87
wp_schedule_event( time(), 'hourly', 'rediscache_discard_metrics' );
88
89
90
91
+ /**
92
+ * Run migrations
93
+ *
94
+ * @return void
95
+ */
96
+ public function run_migrations() {
97
+ if ( WP_REDIS_VERSION === '2.0.16' && ! get_option( 'roc_migrated_2_0_16' ) ) {
98
+ wp_flush_cache();
99
+ update_option( 'roc_migrated_2_0_16', true, true );
100
+ }
101
102
+
103
/**
104
* Adds all necessary hooks
105
*
0 commit comments