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 1522876 commit d789d7bCopy full SHA for d789d7b
1 file changed
simple-wp-optimizer.php
@@ -134,8 +134,8 @@ function es_optimizer_get_options() {
134
function es_optimizer_clear_options_cache() {
135
// Clear the static cache by accessing the static variable.
136
$clear_cache = function () {
137
- static $cached_options = null;
138
- $cached_options = null;
+ static $cached_options = null;
+ $cached_options = null;
139
};
140
$clear_cache();
141
}
@@ -851,7 +851,7 @@ function add_dns_prefetch() {
851
if ( ! $options_checked ) {
852
$options = get_option( 'es_optimizer_options' );
853
$options_checked = true;
854
-
+
855
// Only proceed if the option is enabled.
856
if ( ! isset( $options['enable_dns_prefetch'] ) || ! $options['enable_dns_prefetch'] ) {
857
$domains_cache = array(); // Cache empty array to avoid re-checking.
0 commit comments