• Resolved chabekah

    (@chabekah)


    I have installed your plugin on a WP site running on WP Engine because I couldn’t get the object caching they provide working properly with my SQL custom queries.

    Your plugin appears to work fine, and is caching the DB results of heavy queries, but when I check the “Overview” page in the admin side, I am seeing this error message in the query_monitor plugin’s error log:

    Zend OPcache API is restricted by "restrict_api" configuration directive

    Also seeing this in the browser console

    {
        "obc": "100K object of 596 files",
        "opc": "Not Available",
        "obcs": "100K object of 596 files",
        "opcs": "",
        "opcdc": "Not Available",
        "opcwp": "Not Available",
        "ofile": "596 / 50000",
        "odisk": "1M / 500M"
    }

    and

    {
        "key": "09a382739cc6f8896a9c35ad7b6e812c",
        "type": "warning",
        "message": "Zend OPcache API is restricted by \"restrict_api\" configuration directive",
        "file": "wp-content/plugins/docket-cache/includes/src/Plugin.php",
        "line": 420,
        "stack": [
            "opcache_get_status()",
            "Nawawi\\DocketCache\\Plugin->get_opcache_status()",
            "Nawawi\\DocketCache\\Plugin->get_info()",
            "Nawawi\\D\\Plugin->Nawawi\\D\\{closure}()",
            "do_action('wp_ajax_docket_worker')"
        ],
        "component": "Plugin: docket-cache"
    }

    Since the cache solution seems to be working, I’m not too fussed, but I thought I’d let you know. It is PHP 8.0.28 on WordPress 6.2.2. It seems like there is some bad config in the PHP.ini…

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter chabekah

    (@chabekah)

    I am using version 22.07.05 of the plugin.

    Plugin Author Nawawi Jamili

    (@nawawijamili)

    Hi,

    Thank you for your report. We use opcache_get_status to get OPcache status information.

    A warning notice will appear if OPcache has been configured to restrict some paths from being accessed.

    This may cause Docket Cache unable to verify whether OPcache has been used or not. However, the object cache is still cached in the local disk.

    This issue will be handled better in the next release.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Zend OPcache API is restricted by “restrict_api” configuration directive’ is closed to new replies.