Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show info in admin settings about PHP opcache if disabled #3489

Merged
merged 1 commit into from
Feb 24, 2017

Conversation

MorrisJobke
Copy link
Member

@MorrisJobke MorrisJobke commented Feb 15, 2017

bildschirmfoto 2017-02-15 um 00 04 03

I tried really hard to write unit tests for this, but it's simply not possible to change those settings during runtime. 😢

@mention-bot
Copy link

@MorrisJobke, thanks for your PR! By analyzing the history of the files in this pull request, we identified @LukasReschke, @rullzer and @nickvergessen to be potential reviewers.

$this->urlGenerator->expects($this->at(3))
->method('linkToDocs')
->with('admin-code-integrity')
->willReturn('http://doc.owncloud.org/server/go.php?to=admin-code-integrity');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tiny nitpick... but why not use our own domain ;)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the other check I and I would like to keep them in sync with the code above :/

@MorrisJobke
Copy link
Member Author

ping @nickvergessen @blizzz @schiessle

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
@codecov-io
Copy link

Codecov Report

Merging #3489 into master will increase coverage by 0.51%.
The diff coverage is 90%.

@@             Coverage Diff             @@
##             master   #3489      +/-   ##
===========================================
+ Coverage     54.29%   54.8%   +0.51%     
- Complexity    21073   21513     +440     
===========================================
  Files          1311    1311              
  Lines         80414   81961    +1547     
  Branches       1252    1282      +30     
===========================================
+ Hits          43662   44920    +1258     
- Misses        36752   37041     +289
Impacted Files Coverage Δ Complexity Δ
core/js/setupchecks.js 97.95% <100%> (+0.04%) 0 <ø> (ø)
settings/Controller/CheckSetupController.php 78.44% <88.88%> (+1.26%) 53 <7> (+7)
apps/user_ldap/lib/Proxy.php 35.1% <ø> (-13.43%) 29% <ø> (+8%)
lib/private/Files/Cache/Wrapper/CacheJail.php 85% <ø> (-2.35%) 54% <ø> (+18%)
lib/private/Setup.php 12.88% <ø> (-0.12%) 49% <ø> (ø)
lib/private/TemplateLayout.php 0% <ø> (ø) 38% <ø> (+4%)
settings/templates/users/main.php 0% <ø> (ø) 0% <ø> (ø)
lib/private/Template/JSConfigHelper.php 0% <ø> (ø) 16% <ø> (ø)
apps/files/lib/AppInfo/Application.php 0% <ø> (ø) 2% <ø> (ø)
config/config.sample.php 0% <ø> (ø) 0% <ø> (ø)
... and 15 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 54317e8...cee8853. Read the comment docs.

{
docLink: data.phpOpcacheDocumentation,
}
) + "<pre><code>opcache.enable=On\nopcache.enable_cli=1\nopcache.interned_strings_buffer=8\nopcache.max_accelerated_files=10000\nopcache.memory_consumption=128\nopcache.save_comments=1\nopcache.revalidate_freq=1</code></pre>",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

opcache.enabled=On and opcache.enabled_cli=1? Can you make both 1?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No - this somehow doesn't work. opcache.enabled works here on Ubuntu 16.04 only with On ... all other options with 1. I'm confused as well 😕

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

http://php.net/manual/en/opcache.configuration.php really odd then:

Name 	Default 	Changeable 	Changelog
opcache.enable 	"1" 	PHP_INI_ALL 	 

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

http://php.net/manual/en/opcache.configuration.php really odd then:

I know. But better be on the safe side for this.

@MorrisJobke MorrisJobke merged commit 8a7b8f9 into master Feb 24, 2017
@MorrisJobke MorrisJobke deleted the give-hint-about-opcache branch February 24, 2017 19:10
@MorrisJobke
Copy link
Member Author

Documentation: nextcloud/documentation#367

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants