Zend OPcache API is restricted by “restrict_api” configuration directive
-
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]
- The topic ‘Zend OPcache API is restricted by “restrict_api” configuration directive’ is closed to new replies.