PluginProbe
Powered Cache – Caching and Optimization for WordPress – Easily Improve PageSpeed & Web Vitals Score / 2.0
Powered Cache – Caching and Optimization for WordPress – Easily Improve PageSpeed & Web Vitals Score v2.0
trunk 1.0 1.0.1 1.1 1.1.1 1.1.2 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 2.0 2.0.1 2.0.2 2.0.3 2.0.4 2.1 2.1.1 2.1.2 2.2 2.2.1 All 69 releases
← All changes | includes/classes/ObjectCache.php +2 -8 2.22.0 View file →
@@ -95,24 +95,18 @@
95 95 }
96 96
97 97 if ( is_multisite() && ! current_user_can( 'manage_network' ) ) {
98 98 $redirect_url = add_query_arg( 'pc_action', 'flush_object_cache_err_permission', wp_get_referer() );
99 - wp_safe_redirect( esc_url_raw( $redirect_url ) );
99 + wp_safe_redirect( $redirect_url );
100 100 exit;
101 101 }
102 102
103 - if ( ! current_user_can( 'manage_options' ) ) {
104 - $redirect_url = add_query_arg( 'pc_action', 'flush_object_cache_err_permission', wp_get_referer() );
105 - wp_safe_redirect( esc_url_raw( $redirect_url ) );
106 - exit;
107 - }
108 -
109 103 if ( function_exists( 'wp_cache_flush' ) ) {
110 104 wp_cache_flush();
111 105 }
112 106
113 107 $redirect_url = add_query_arg( 'pc_action', 'flush_object_cache', wp_get_referer() );
114 - wp_safe_redirect( esc_url_raw( $redirect_url ) );
108 + wp_safe_redirect( $redirect_url );
115 109 exit;
116 110 }
117 111
118 112