8000 Default lifetime issue by ecanovas · Pull Request #1 · symfony/cache · GitHub
[go: up one dir, main page]

Skip to content

Default lifetime issue #1

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

Closed

Conversation

ecanovas
Copy link

[cache component] DefaultLifetime for FilesystemAdapter, ApcuAdapter and ArrayAdapter wasn't working properly.

When It's used one of the specified Adapters with a defaultLifetime != 0, cacheItem doesn't expire at anytime.

Tests have been added to check this and code to fix it.

ecanovas added 2 commits July 26, 2016 17:04
… in FilesystemAdapter, ArrayAdapter and ApcuAdapter; It is suposed all adapter

which inherits from AbstractAdapter is fixed.
@nicolas-grekas
Copy link
Member

Good catch @ecanovas!
I've fixed the issue in another way in symfony/symfony#19442
For your next PRs, I invite you to submit them against the https://github.com/symfony/symfony/ repos: this symfony/cache one is a read-only subtree split of the main symfony/symfony repos.

@ecanovas
Copy link
Author

Thanks.

Take note for your recommendations but it's been my first time doing something with github, tests in software, PRs, etc... And symfony/symfony repo seemed too big for a newbie.

@nicolas-grekas
Copy link
Member

don't worry, the community is welcoming :)

nicolas-grekas added a commit to symfony/symfony that referenced this pull request Jul 28, 2016
This PR was merged into the 3.1 branch.

Discussion
----------

[Cache] Fix default lifetime being ignored

| Q             | A
| ------------- | ---
| Branch?       | 3.1
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | symfony/cache#1
| License       | MIT
| Doc PR        | -

Courtesy of @ecanovas

Commits
-------

35ba478 [Cache] Fix default lifetime being ignored
symfony-splitter pushed a commit that referenced this pull request Jul 28, 2016
This PR was merged into the 3.1 branch.

Discussion
----------

[Cache] Fix default lifetime being ignored

| Q             | A
| ------------- | ---
| Branch?       | 3.1
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #1
| License       | MIT
| Doc PR        | -

Courtesy of @ecanovas

Commits
-------

35ba478 [Cache] Fix default lifetime being ignored
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0