Delete the cache from the WordPress admin bar. WP SuperCache Plugin.
For caching, I often use a plugin in development and meet on client sites WP Super Cache. The plugin is very good and allows you to speed up page loading, but the free version of the plugin has one drawback, there is no clear cache button in the admin bar. To address this one of the site's forums wordpress.org suggested the following button embed code:
1 2 3 4 5 6 7 8 9 10 |
function my_admin_bar_menu() { global $wp_admin_bar; if ( !is_super_admin() || !is_admin_bar_showing() ) return; $wp_admin_bar->add_menu( array( 'id' => 'custom_menu', 'title' => __( 'Delete Cache'), 'href' => 'https://wp-admin.com.ua/wp-admin/options-general.php?page=wpsupercache&tab=contents' ) ); } add_action('admin_bar_menu', 'my_admin_bar_menu'); |
The code greatly simplifies the work with the plugin and allows you to quickly get to the cache clearing page.
/*
- Basic web design course;
- Site layout;
- General course on CMS WordPress and continuation of the course on template development;
- Website development in PHP.