Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Cache] ApcuAdapter::isSupported() should return true when apc.enable_cli=Off#23091

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:3.2fromnicolas-grekas:cache-apcu
Jun 9, 2017

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekasnicolas-grekas commentedJun 7, 2017
edited
Loading

QA
Branch?3.2
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets-
LicenseMIT
Doc PR-

By being sensitive to apc.enable_cli, CLI cache warmup is broken when the setting is set to off because a PhpFilesAdapter will be warmed up by the CLI, whereas the Web mode will look at the FilesystemAdapter pools, which will be empty.


if ($allowCompile) {
@opcache_compile_file($file);
@opcache_invalidate($file,true);
Copy link
MemberAuthor

@nicolas-grekasnicolas-grekasJun 8, 2017
edited
Loading

Choose a reason for hiding this comment

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

Just verified with@jpauli:opcache_compile_file does not invalidate. Let's call onlyopcache_invalidate.

protectedfunctiondoClear($namespace)
{
returnisset($namespace[0]) &&class_exists('APCuIterator',false)
returnisset($namespace[0]) &&class_exists('APCuIterator',false) && ('cli' !==PHP_SAPI ||ini_get('apc.enable_cli'))
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

new APCuIterator triggers a fatal error when apcu is not enabled...

@fabpot
Copy link
Member

Thank you@nicolas-grekas.

@fabpotfabpot merged commitaadf263 intosymfony:3.2Jun 9, 2017
fabpot added a commit that referenced this pull requestJun 9, 2017
… apc.enable_cli=Off (nicolas-grekas)This PR was merged into the 3.2 branch.Discussion----------[Cache] ApcuAdapter::isSupported() should return true when apc.enable_cli=Off| Q             | A| ------------- | ---| Branch?       | 3.2| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -By being sensitive to apc.enable_cli, CLI cache warmup is broken when the setting is set to off because a PhpFilesAdapter will be warmed up by the CLI, whereas the Web mode will look at the FilesystemAdapter pools, which will be empty.Commits-------aadf263 [Cache] APCu isSupported() should return true when apc.enable_cli=Off
This was referencedJul 4, 2017
@nicolas-grekasnicolas-grekas deleted the cache-apcu branchJuly 10, 2017 15:58
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

3.2

Development

Successfully merging this pull request may close these issues.

2 participants

@nicolas-grekas@fabpot

[8]ページ先頭

©2009-2025 Movatter.jp