You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cache inconsistency with FS when deleting/restoring versions #11935
Edit then save the file multiple times to create versions
Check versions in the versions dropdown
Check database: select * from oc_filecache where path like '%/test.txt%';
Delete file "test.txt"
Check database again
Restore file "test.txt"
Check database again
Expected result
At step 4 the versions are listed under "files_versions" in the database.
At step 6 the versions are listed under "files_trashbin/versions".
At step 8 the versions are back under "files_versions".
Actual result
At step 6 the versions are STILL under "files_versions" even though in the filesystem they are under "files_trashbin/versions".
At step 8 the versions are now under "files_trashbin/versions" even though in the filesystem they are back under "files_versions".
Versions
ownCloud 7 stable7 (f718e88) and also on master (6f0c814)
This issue doesn't seem to break functionality, but who knows what side effects it could cause.
I remember that @icewind1991 added a change that made the scanner also work for files_versions and files_trashbin. I'd expect that if the trashbin uses $view operations the cache would update automatically. @schiesbn any idea ?
Activity
PVince81 commentedon Mar 2, 2015
The question is also why we need rescanning of versions in the first place, this: https://github.com/owncloud/core/blob/stable7/apps/files_trashbin/lib/trashbin.php#L889
This means rescanning might happen for every file upload that triggers trashbin expiration and could cause CPU spikes: #11240 (comment)
PVince81 commentedon Aug 21, 2015
I think this has been fixed in OC 8.
Also in OC 8.1 the trashbin expiration happens in a background job, and the scanning has been optimized.