Clear Cache Link on the Toolbar

by admin

One of the ways to clear cache is clicking on the link which exists on the admin toolbar. By default, only the admin users can see the clear cache button on the toolbar.

Authorities

Although It only appears for admins as default, you can make it visible by user role. This feature allows you to show the clear cache button which exists on the admin toolbar based on user roles.

First you need to open the settings page of wp fastest cache. Then you need to click on the settings link as you can see in the picture below.

Then you can select the roles you want on the popup lighbox.

Hide Toolbar Link

The WP Fastest Cache menu is displayed on the admin toolbar by default. If it bothers you, there are two methods available to help you to remove it easily.

Method 1: Using Filter

You nedd to the filter on your theme’s functions.php file.

add_filter( 'wpfc_hide_toolbar', '__return_true' );

Method 2: Using wp-config.php

You need to add the following line after <?php which exists on the top of wp-config.php file.

define('WPFC_HIDE_TOOLBAR', true);

Related articles

Placeholder Image
Clear Cache of All Sites

If you use the MultiSite installation on your wordpress, separate cache is created for each site. When you click on…

Clear Cache of Specific URLs when Updating or Posting
Clear Cache of Specific URLs when Updating or Posting

If all cache is not cleared when a post or a page is updated, this feature may be useful for…

Placeholder Image
Clear Cache After Activate/Deactivate a Plugin

When you activate or deactivate a plugin, you might ask for the entire cache to be cleared.

Ready to get started?

Purchase your first license and see why 1,500,000+ websites globally around the world trust us.