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

[FrameworkBundle] Fallback to default cache system in production for validation#18544

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:masterfromtgalopin:cache-default
Apr 15, 2016

Conversation

@tgalopin
Copy link
Contributor

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

This PR proposes a default fallback to filesystem cache for some services if the APC cache is not enabled in production. In other words, if the following part ofconfig_prod.yml file is not uncommented, the filesystem will be used:

#framework:#    validation:#        cache: validator.mapping.cache.doctrine.apc#    serializer:#        cache: serializer.mapping.cache.doctrine.apc## ... other services

@tgalopintgalopinforce-pushed thecache-default branch 3 times, most recently from015c3d0 tofa9c721CompareApril 14, 2016 12:30
@tgalopintgalopin changed the title[WIP][FrameworkBundle] Fallback to default cache system in production for some services[FrameworkBundle] Fallback to default cache system in production for some servicesApr 14, 2016
@tgalopin
Copy link
ContributorAuthor

Not WIP anymore. Targeting 3.1.

@tgalopintgalopin changed the title[FrameworkBundle] Fallback to default cache system in production for some services[FrameworkBundle] Fallback to default cache system in production for validationApr 14, 2016

foreach (array('name','root_dir','environment','debug')as$key) {
if ($container->hasParameter('kernel.'.$key)) {
$namespaceSuffix .='.'.$container->getParameter('kernel.'.$key);

Choose a reason for hiding this comment

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

👍 for seeding cache pool namespaces with parameters from the kernel, this was missing

@nicolas-grekas
Copy link
Member

👍 for 3.1

@fabpot
Copy link
Member

Thank you@tgalopin.

@fabpotfabpot merged commit1a65595 intosymfony:masterApr 15, 2016
fabpot added a commit that referenced this pull requestApr 15, 2016
…production for validation (tgalopin)This PR was merged into the 3.1-dev branch.Discussion----------[FrameworkBundle] Fallback to default cache system in production for validation| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | WIP| Fixed tickets | -| License       | MIT| Doc PR        | -This PR proposes a default fallback to filesystem cache for some services if the APC cache is not enabled in production. In other words, if the following part of `config_prod.yml` file is not uncommented, the filesystem will be used:``` yaml#framework:#    validation:#        cache: validator.mapping.cache.doctrine.apc#    serializer:#        cache: serializer.mapping.cache.doctrine.apc## ... other services```Commits-------1a65595 [FrameworkBundle] Fallback to default cache system in production for validation
nicolas-grekas added a commit that referenced this pull requestApr 19, 2016
…production for serializer (tgalopin)This PR was merged into the 3.1-dev branch.Discussion----------[FrameworkBundle] Fallback to default cache system in production for serializer| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -In the same idea as#18544, this PR proposes a default fallback to filesystem cache for the serializer if the APC cache is not enabled in production. In other words, if the following part of `config_prod.yml` file is not uncommented, the filesystem will be used:``` yaml#framework:#    serializer:#        cache: serializer.mapping.cache.doctrine.apc```Commits-------4f0b8be [FrameworkBundle] Fallback to default cache system in production for serializer
symfony-splitter pushed a commit to symfony/framework-bundle that referenced this pull requestApr 19, 2016
…production for serializer (tgalopin)This PR was merged into the 3.1-dev branch.Discussion----------[FrameworkBundle] Fallback to default cache system in production for serializer| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -In the same idea assymfony/symfony#18544, this PR proposes a default fallback to filesystem cache for the serializer if the APC cache is not enabled in production. In other words, if the following part of `config_prod.yml` file is not uncommented, the filesystem will be used:``` yaml#framework:#    serializer:#        cache: serializer.mapping.cache.doctrine.apc```Commits-------4f0b8be [FrameworkBundle] Fallback to default cache system in production for serializer
@fabpotfabpot mentioned this pull requestMay 13, 2016
@tgalopintgalopin deleted the cache-default branchJuly 29, 2016 15:56
fabpot added a commit that referenced this pull requestSep 14, 2016
…or based on PhpArrayAdapter (tgalopin)This PR was merged into the 3.2-dev branch.Discussion----------[FrameworkBundle] Introduce a cache warmer for Validator based on PhpArrayAdapter| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | yes| Tests pass?   | -| Fixed tickets | -| License       | MIT| Doc PR        | -Following the cache warmer for annotations PR (#18533), this PR introduces a cache warmer for YAML and XML Validator configuration.Based on the PhpArrayAdapter, it uses the naming conventions (`Resources/config/validation`) to find the files and compile them into a single PHP file stored in the cache directory. This file uses shared memory on PHP 7.The benefit of this PR are the same than the ones of the annotations PR:- validation configuration can be warmed up offline- on PHP 7, there is no need for user extension to get maximum performances (ie. if you use this PR and the other one, you probably won't need to enable APCu to have great performances)- on PHP 7 again, we are not sensitive to APCu memory fragmentation- last but not least, global performance is slightly better (I get 30us per class gain in Blackfire)This PR also deprecates the framework.validator.cache key in favor of the cache pool introduced in#18544.Commits-------6bdaf0b [FrameworkBundle] Introduce a cache warmer for Validator based on PhpArrayAdapter
symfony-splitter pushed a commit to symfony/validator that referenced this pull requestSep 14, 2016
…or based on PhpArrayAdapter (tgalopin)This PR was merged into the 3.2-dev branch.Discussion----------[FrameworkBundle] Introduce a cache warmer for Validator based on PhpArrayAdapter| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | yes| Tests pass?   | -| Fixed tickets | -| License       | MIT| Doc PR        | -Following the cache warmer for annotations PR (symfony/symfony#18533), this PR introduces a cache warmer for YAML and XML Validator configuration.Based on the PhpArrayAdapter, it uses the naming conventions (`Resources/config/validation`) to find the files and compile them into a single PHP file stored in the cache directory. This file uses shared memory on PHP 7.The benefit of this PR are the same than the ones of the annotations PR:- validation configuration can be warmed up offline- on PHP 7, there is no need for user extension to get maximum performances (ie. if you use this PR and the other one, you probably won't need to enable APCu to have great performances)- on PHP 7 again, we are not sensitive to APCu memory fragmentation- last but not least, global performance is slightly better (I get 30us per class gain in Blackfire)This PR also deprecates the framework.validator.cache key in favor of the cache pool introduced insymfony/symfony#18544.Commits-------6bdaf0b [FrameworkBundle] Introduce a cache warmer for Validator based on PhpArrayAdapter
symfony-splitter pushed a commit to symfony/framework-bundle that referenced this pull requestSep 14, 2016
…or based on PhpArrayAdapter (tgalopin)This PR was merged into the 3.2-dev branch.Discussion----------[FrameworkBundle] Introduce a cache warmer for Validator based on PhpArrayAdapter| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | yes| Tests pass?   | -| Fixed tickets | -| License       | MIT| Doc PR        | -Following the cache warmer for annotations PR (symfony/symfony#18533), this PR introduces a cache warmer for YAML and XML Validator configuration.Based on the PhpArrayAdapter, it uses the naming conventions (`Resources/config/validation`) to find the files and compile them into a single PHP file stored in the cache directory. This file uses shared memory on PHP 7.The benefit of this PR are the same than the ones of the annotations PR:- validation configuration can be warmed up offline- on PHP 7, there is no need for user extension to get maximum performances (ie. if you use this PR and the other one, you probably won't need to enable APCu to have great performances)- on PHP 7 again, we are not sensitive to APCu memory fragmentation- last but not least, global performance is slightly better (I get 30us per class gain in Blackfire)This PR also deprecates the framework.validator.cache key in favor of the cache pool introduced insymfony/symfony#18544.Commits-------6bdaf0b [FrameworkBundle] Introduce a cache warmer for Validator based on PhpArrayAdapter
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@tgalopin@nicolas-grekas@fabpot@javiereguiluz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp