Hi @ankitguptaindia @epigeyre @dave_slaughter;
Contrary to what I wrote just minutes ago, I did find another solution.
I recently had another issue with the site being very slow, and managed to get it working normally again by changing some other things, see:
In the second part of that message I also made additions to the way wp-cli starts (I think):
@ECHO OFF
php "%~dp0\..\wp-cli.phar" %*
to
@ECHO OFF
php -dxdebug.mode=debug "%~dp0\..\wp-cli.phar" %*
For me the shell works without disabling the opcache.enable_cli=1 line
Hope this helps,
Ruud