PluginProbe
Tiered Pricing Table for WooCommerce / 2.2.3
Tiered Pricing Table for WooCommerce v2.2.3
8.0.2 7.1.7 7.1.5 7.1.4 7.1.1 6.5.0 6.4.0 6.1.0 trunk 1.0 1.1 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0 2.3.1 2.3.2 2.3.3 All 91 releases
← All changes | freemius/includes/managers/class-fs-option-manager.php +10 -3 2.2.1 → 2.2.3 View file →
@@ -142,19 +142,26 @@
142 142 }
143 143
144 144 $cache_group = $this->get_cache_group();
145 145
146 - if ( ! WP_FS__DEBUG_SDK ) {
146 + if ( WP_FS__DEBUG_SDK ) {
147 147
148 + // Don't use cache layer in DEBUG mode.
149 + $load_options = empty( $this->_options );
150 +
151 + } else {
152 +
148 153 $this->_options = wp_cache_get(
149 154 $option_name,
150 155 $cache_group
151 156 );
157 +
158 + $load_options = ( false === $this->_options );
152 159 }
153 160
154 161 $cached = true;
155 162
156 - if ( empty( $this->_options ) ) {
163 + if ( $load_options ) {
157 164 if ( $this->_is_network_storage ) {
158 165 $this->_options = get_site_option( $option_name );
159 166 } else if ( $this->_blog_id > 0 ) {
160 167 $this->_options = get_blog_option( $this->_blog_id, $option_name );
@@ -486,5 +493,5 @@
486 493 return $group;
487 494 }
488 495
489 496 #endregion
490 - }
497 + }