Just works
-
I tried other varnish plugins before this, but they didn’t work. this one worked right off the bat! Great work ??
I ended up adding my own function + filter into the code in order to have the purge right now button in my admin bar. Easy:
In init:
add_action('admin_bar_menu', array($this, 'varnish_right_now_admin_bar_link'), 100);
Within the class
function varnish_right_now_admin_bar_link($admin_bar){ $admin_bar->add_menu( array( 'id' => 'purge-varnish-cache-all', 'title' => 'Purge Varnish', 'href' => wp_nonce_url(admin_url('?vhp_flush_all'), 'varnish-http-purge'), 'meta' => array( 'title' => __('Purge your varnish cache'), ), )); }
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Just works’ is closed to new replies.