No Updates using Win64 php7.2.3 opcache?

No Updates using Win64 php7.2.3 opcache?

by Roland Hauck -
Number of replies: 2

Hi,

after migrating m3.4.1 to a new server with (all software x64, todays version)

everything was running fine for several weeks in production.

But: I couldn't upgrade to m 3.5.
Apache crashes, no php errors, no moodle errors, Win Log: error by opcache dll.

I disabled opcache and .... m3.5 upgrades gracefully.
Turning on opcache --> works as expected, alle problems seem to be gone.

There is still a (hidden) snag: site administration --> notification  restarts this problems again.

Are there any php  commands concerning opcache in this script which were declared depreciated or even removed in 7.2.3?

Should I disable opcache while updating?
Wouldn't be a really smart solution for production.


Average of ratings: Useful (1)
In reply to Roland Hauck

Re: No Updates using Win64 php7.2.3 opcache?

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

It used to be recommended switching off opcache for upgrades. I'm not sure that it still is. 

In reply to Howard Miller

Re: No Updates using Win64 php7.2.3 opcache?

by Roland Hauck -

Hi Howard,

thanks for this hint.
I never found any offical recommendation in migration / upgrading docs.

May be its  win-specific. May be its related to php versions.

A colleaugue working with Linux / php 7.1 had no problems at all.

Sure enough: the scripts ~ admin/index try to disable/clear opcache with some functions.
Obviously working not to well with all constellations.