Created attachment 190699 [details] Add opcode menu The Nextcloud admin manual recommends the use of OPcache, along with minimum recommended settings. This patch adds a menu to select an opcode cache (none, OPcache, or OPcache with example config). Default setting is for "none", preserving the current port behavior and dependencies. Tested for all three options on 11.1-RELEASE-p6 amd64, according to steps in Chapter 3, section 4 of porters handbook.
Created attachment 190700 [details] CORRECTION: Add opcode menu Uploaded wrong patch.
Created attachment 190701 [details] CORRECTION: Add opcode menu Noticed a logic error, used ${PREFIX} in one place, but ${PHPBASE} elsewhere. Corrected patch to only use ${PHPBASE}.
Created attachment 191680 [details] Unified svn diff Updated patch to work on Nextcloud 13. Build works on 11.1-RELEASE-p6.
Requesting maintainer timeout. No response received in over a month.
Hello no timeout i'm there. Is this compatible with PHP 5.6 to 7.2 ?
Hi Matt, Adding an OPCACHE knob to the 13.0.1 update as I think that makes sense. Your patch is missing the www_nextcloud_opcache.ini.sample file. I don't think we should go into adding the file itself, the Nextcloud Admin pages provide enough info for a user to properly configure opcache. loic: there's a php56-opcache port as well. Cheers, Bernard.
Created attachment 192006 [details] Updated svn diff (adds missing files) Bernard- Thanks for catching that - I have updated the diff. However, I don't entirely agree with your comment about "not go into adding the file itself". Obviously, since I made the patch this way :-). If we give the (informed) user the option to use a stub config, why is that not acceptable? If the decision it to not include the actual file, then: that will change the option to a simple binary, and the '@sample' needs to be omitted from the pkg-plist.