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

Local adapter throws an error if used as a cache and the file is missing #119

Open
glend opened this issue Sep 9, 2015 · 1 comment
Open

Comments

@glend
Copy link

glend commented Sep 9, 2015

I am using a S3 adapter for my files and caching them via a local adapter.

The problem arises when I issue a redeployment, the files in the cache (local adapter) are not there anymore. This throws an error:

unlink(/var/www/xxx/web/media/uploads/cover-image/xxx.jpeg): No such file or directory in /var/www/xxx/vendor/knplabs/gaufrette/src/Gaufrette/Adapter/Local.php on line 135"

As a cache, I expect it to not have this behavior, and ignore this if the file doesn't exist. This hinders the usage in cloud scenarios where you want to scale horizontally and keep using Local adapter as a cache.

@mvhirsch
Copy link
Contributor

I'm running into the same issue (but using a FTP-adapter as remote).
@glend, did you solve the problem and could you please make a PR for this?

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

6 participants