Open johncuthbertuk opened 4 years ago
It's been quite a while since I originally raised the issues but just wondered if anyone had any thoughts on the issues being faced and how house keeping should be approached.
Similarly, not sure if I've missed how house keeping should be working and maybe the issue lies elsewhere?
Appreciate any help - thanks in advance!
Personally, I run a cronjob that does a query like this once in a while:
DELETE oc_files_antivirus.*
FROM oc_files_antivirus
LEFT JOIN oc_filecache ON oc_filecache.fileid=oc_files_antivirus.fileid
WHERE oc_filecache.fileid IS NULL
AND oc_files_antivirus.check_time<UNIX_TIMESTAMP()-(30*24*60*60)
from bottom up:
maybe someone can implement a query like this in the background job. this query shouldn't be run every time, but maybe something like once every week or month.
Steps to reproduce
oc_files_antivirus
table which should now include the new fileAdditional steps to try and invoke the intended behaviour
check_time
for the file to be beyond 28 daysExpected behaviour
The
oc_files_antivirus
table should no longer have an entry for the fileActual behaviour
The
oc_files_antivirus
has files which no longer exist and no house keeping performedServer configuration
Operating system: RHEL 7 Web server:
Database: Postgres 11.6 PHP version: 7.1 Nextcloud version: (see Nextcloud admin page) 0.17.2
Where did you install Nextcloud from: Direct
List of activated apps:
Nextcloud configuration:
Client configuration
Browser:
Operating system:
Logs
Nextcloud log (data/owncloud.log)
Browser log