Plugin Author
nierdz
(@mnttech)
Yeah, it should be here but I don’t have a multisite to check it. This is the part where the admin page is included : https://github.com/nierdz/wordpress-opcache-plugin/blob/master/flush-opcache/admin/class-flush-opcache-admin.php#L61 I need to add a multisite inside my dev environment to be able to check that. Maybe it works if you’re on the main site of your multisite. Can you check it ?
I’ll do this in the next days but don’t expect it to be really soon cause I’m very busy right now. I’ll let you know once it’s done
Hi @mnttech . Thank you looking into this. I checked, and the WP Opcache page is not displayed anywhere in the network admin nor in the main site’s admin section.
To get it to show, I think the call to ‘add_management_page’ in ‘class-flush-opcache-admin.php’ (line 62 to 68) should be replaced with something like this:
add_menu_page(
__( 'WP Opcache', 'flush-opcache' ),
__( 'WP OPcache', 'flush-opcache' ),
'manage_options',
'flush-opcache',
array( $this, 'flush_opcache_admin_page' ),
'dashicons-admin-tools',
21
);
This will create a top level menu in the network admin, since there is no tools menu there. You could also use ‘add_submenu_page’ to put it under one of the existing menu items, but I’m not sure which would be the best fit. In my testing, the snippet above worked well.
Hope this helps.
Hi,
Is there any news on this? I just updated to the latest version of this plugin and ran into this issue. The settings page can still be reached by manually entering its URL, but there is no menu option for it.