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

Cache: ERROR: unlink(/cache/imdb_cache/title.tt17235912): No such file or directory #306

Open
ghost opened this issue May 7, 2023 · 1 comment

Comments

@ghost
Copy link

ghost commented May 7, 2023

Been getting a lot of these errors in my logs and I don't really know why or how.

ERROR: unlink(/var/www/removed/storage/framework/cache/imdb_cache/title.tt17235912): No such file or directory at vendor/imdbphp/imdbphp/src/Imdb/Cache.php:137

It tries to delete a file that's not there so I am wondering where this unlink request would come from. Like where would it get the title.tt17235912 filename if it doesn't exist on disk?

@tboothman
Copy link
Owner

I suppose if you started two requests using imdbphp at the same time they'd have a fight over deleting old files in the cache folder.

I created an issue for limiting cache purge frequency 9 years ago but i/nobody ever did it :D #6
flock might help, but that sounds like it's a got a lot of footguns

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

No branches or pull requests

1 participant