-
Notifications
You must be signed in to change notification settings - Fork 389
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_dir not working #1919
Comments
I can't reproduce it. Yazi uses file's path and mtime as the unique id for caching: yazi/yazi-plugin/src/utils/cache.rs Lines 16 to 22 in 6a4f6aa
Are you sure the mtime of your files hasn't changed? |
Yes. The files haven't been edited since they've been written to the disk. I have |
oops, didn't mean to close it. sorry. |
I checked the mtime, checked the name of the files in my cache_dir, rebooted to see if the problem persisted (it did), deleted the files in my cache_dir, rebooted, recached the images (same names), rebooted, and the problem persisted. If you have any ideas or want anything from me then I'll be happy to provide. |
Is it only happening with images? Does the issue also occur with videos or PDFs? Does it happen on a specific drive or all drives? Is that drive an external one? If it is, Windows seems to rename them based on the order they’re connected (D, E, F, etc.), which could be causing the filenames to keep changing. |
I've only tested it with images and videos and it happens with all of them. It happens on every drive. All drives are internal. I'm running gentoo linux. |
What system are you running Yazi on?
Linux X11
What terminal are you running Yazi in?
kitty v0.36.4
yazi --debug
outputDescribe the bug
I have three drives in my system: my root drive, a hard drive, and an ssd. I have set the cache_dir to a directory on my ssd and when I load images on my hard drive they show up in that directory, so I know that it's working correctly. However, when I reboot, the cached images remain but when I load their counterparts on my hard drive it's as if they were never cached.
Minimal reproducer
Due to the nature of this issue, I'm not sure what to put here. I suppose you could reproduce the issue if you have a setup similar to mine: the media being on one drive and the cache_dir on another, with neither of them being the root drive.
Anything else?
No response
Validations
yazi --debug
) input box to the nightly that I triedmv ~/.config/yazi ~/.config/yazi-backup
)The text was updated successfully, but these errors were encountered: