do you want to enable/disable the toolbar for the users via a settings wizard?
Hello,
Thank you for your answer. Yes, I would like to be able to choose who is allowed to clear the cache in the plugin settings. By default, only administrators are allowed to clear the cache now. Following your documentation, I have added the ability to clear the cache for users with the editor role. To do this, I made changes to wp-config.php. But it would be cool if such settings were in the plugin settings. I hope I was able to explain correctly.
I will work on it and let you know.
Hello,
Thank you so much for your work. I will certainly try this update in the coming days.
ok please let me know after trying.
Hello,
I just tried this update on 2 client sites. The settings work correctly – the cache cleanup function has appeared on the toolbar of a user with the Editor role. I haven’t tried it on other client sites, because there are a lot of them, but I think there should be no problems.
PHP 7.2.32
WordPress 5.4.2
WPBakery Page Builder 6.2.0 (site #1)
Elementor 2.9.13 (site #2)
Classic Editor 1.5
TablePress 1.11
Wordfence Security 7.4.9
WP Hide & Security Enhancer 1.6.0.4
WP Mail SMTP 2.2.1
WPForms Lite 1.6.1.
Really Simple SSL 3.3.4
CMB2 2.7.0 (site #2)
Envato Elements 2.0.5 (site #2)
thank you so much. it will be available in the next version.
Hey there,
I have still the issue with the no show at editor role at Version 0.9.1.2.
At the admin toolbar of “Delete Cache”, I only have
– Clear ALL Cache
– Delete Cache and minified CSS/JS
– Clear Cache of All Sites
And no “Settings” at WP Fastest Cache Options Page.
“define(‘WPFC_TOOLBAR_FOR_EDITOR’, true);” doesn’t work nether.
I’m looking forward for help.
-
This reply was modified 2 years, 6 months ago by
Fleks.
I found this at /plugins/wp-fastest-cache/inc/admin-toolbar.php and just copied the part if (isset($_GET["page"]) && $_GET["page"] == "wpfastestcacheoptions")
on the top of if ($this - > is_multi) {
, so I could see “Settings”:
if ($this - > is_multi) {
$wp_admin_bar - > add_menu(array(
'id' => 'wpfc-toolbar-parent-clear-cache-of-allsites',
'title' => __("Clear Cache of All Sites", "wp-fastest-cache"),
'parent' => 'wpfc-toolbar-parent',
'meta' => array("class" => "wpfc-toolbar-child")
));
} else {
if (isset($_GET["page"]) && $_GET["page"] == "wpfastestcacheoptions") {
$wp_admin_bar - > add_menu(array(
'id' => 'wpfc-toolbar-parent-settings',
'title' => __("Settings", "wp-fastest-cache"),
'parent' => 'wpfc-toolbar-parent',
'meta' => array("class" => "wpfc-toolbar-child")
));
}
}
Now, I’m wondering why my WordPress thinks it’s a multi-site and why can’t see the “Settings” as a multi-site-installation
I found the problem causing plugin.
“Polylang” creats a multisite, so the options “Settings” isn’t show in the toolbar menu auf WPFC.
Troubleshooting:
deactivate Polylang, edit Authorities thru Delete Cache > Settings on the WP Fastest Cache Option Page, activate Polylang again and the “Delete Cache” is shown at the toolbar of the other user levels.