• This is a really useful plugin when troubleshooting OPcache issues, thank you for creating it. It does not seem to be fully compatible with WordPress in multisite mode. I can install and activate the plugin, and the admin bar button is there. But there’s no link to the settings/statistics page on any of the subsites, nor in the network admin.

    Is there any chance this could be added? Since the settings and stats would be identical on all sites, it would probably make sense to only show the pages in the network admin section.

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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

    Thread Starter Roy Tanck

    (@roytanck)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.