olive-editor / olive

Free open-source non-linear video editor
https://olivevideoeditor.org/
GNU General Public License v3.0
7.99k stars 542 forks source link

[CACHE] Some cache information is not deleted during Clear Disk Cache #2285

Open RigacciOrg opened 9 months ago

RigacciOrg commented 9 months ago

55eedbfc

Debian 12

Some cache information is not deleted

If footage is changed but timestamp does not change, some cached data persists

When I select Tools => Preferences => Disk => Disk Cache Settings => Clear Disk Cache => Yes I expect that all the cached information about footage is deleted, but I find that something is keept untill removed manually.

By mistake I imported some footages without the audio track into a project. Then I created a new project importing the same footages but this time with the audio included (the files were into the same folder, have the same filename and the same timestamp). Olive Editor did not notice that the file had changed and continued to import it as if it had no audio.

Clearing the cache didn't help. It turned out that I had to empty the $HOME/.cache/olivevideoeditor.org/Olive/ folder, while the Clear Disk Cache procedure only empties the $HOME/.local/share/olivevideoeditor.org/Olive/mediacache/ folder.