Environment:
Plugin version: 4.8
WordPress version: 5.1.1
Using object caching
It was recently brought to my attention that the object cache was constantly receiving flush calls. Disabling Varnish HTTP Purge did stop that behaviour.
After some investigating I found a condition testing for the DB version that kept returning false even though the DB version is up to date.
get_option( 'db_version' ) !== $wp_db_version turns out get_option returns a string and $wp_db_version is a int
Environment: Plugin version: 4.8 WordPress version: 5.1.1 Using object caching
It was recently brought to my attention that the object cache was constantly receiving flush calls. Disabling Varnish HTTP Purge did stop that behaviour.
After some investigating I found a condition testing for the DB version that kept returning
false
even though the DB version is up to date.get_option( 'db_version' ) !== $wp_db_version
turns outget_option
returns astring
and$wp_db_version
is aint