Hi Joomla devs :-)
Using OpCache and upgrading extensions gives could give an 500 error on both frontend and backend but often it "just" gives strande PHP erros in the backend.
Here is my recommandation for the next version of Joomla.
Insert this code before the upgrade is started:
if (extension_loaded('Zend OPcache')) opcache_reset();
And perhaps also run the code above one more time just after upgrade.
I am manually doing it for my web clients that use OpCache on their sites.
OpCache is great and creates much faster pages but Joomla is not fully compatibable with it.
Title |
|
@JensKirk consider making a pull request to solve the issue you're describing.
See https://docs.joomla.org/Using_the_Github_UI_to_Make_Pull_Requests
More info: https://docs.joomla.org/Portal:Joomla!_Code_Contributors
Issue #9515 has more detailed analysis on why the issue happens (also in Joomla Updater) and how to work around and/or fix it. Its a separate issue as its not using extension installer code, but happens for the same reason: because of the files change and depending on opcache settings, the change is not detected.
The solution is not to call opcache_reset();
before installation, but right after files have been copied.
I am closing this here so we have just one topic
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-03-22 12:31:01 |
Closed_By | ⇒ | brianteeman |
Alright, I just need to remember to fix both of the issues then.. :)
Can anyone fix this issue that goes for all versions of Joomla?