Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[FrameworkBundle] cache:clear breaks when an oldCacheDir already exists #6502

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
ErikTrapman opened this issue Dec 28, 2012 · 0 comments
Closed

Comments

@ErikTrapman
Copy link

When using cache:clear (in a windows-environment with administrator-rights) breaks when the $oldCacheDir is already a directory.

[ErrorException]
Warning: rename(C://envname, C://envname_old): Access denied. (code: 5) in C:~\FrameworkBundle\Command\CacheClearCommand.php line 77

I'm not sure how this behaviour is on a linux-machine, but there's simply no check at all if any directory with *_old already exists.

  • Should there not be a check and create a new unique $oldCacheDir if one's already available?
  • Should old cache dir's be removed?
fabpot added a commit that referenced this issue Mar 6, 2013
This PR was squashed before being merged into the 2.1 branch (closes #7260).

Commits
-------

1d3da29 [FrameworkBundle] avoids cache:clear to break if new/old folders already exist

Discussion
----------

[FrameworkBundle] avoids cache:clear to break if new/old folders already exist

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #6502

---------------------------------------------------------------------------

by mahmouds at 2013-03-04T19:07:20Z

:+1:
@fabpot fabpot closed this as completed Mar 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants