[TASK] Delete sys_file(_metadata) entries when a file is deleted 71/23671/21
authorFrans Saris <franssaris@gmail.com>
Sun, 8 Sep 2013 12:39:27 +0000 (14:39 +0200)
committerSteffen Ritter <info@rs-websystems.de>
Fri, 18 Oct 2013 12:16:20 +0000 (14:16 +0200)
commit1cfc65dc75b851e94969ba0761128db56f9df20d
treee94eb1bc6ddab132d5e9b458eb97c17ff64fe0b7
parent29ea0d1a067643907c7578ac050a3ae504cb6a23
[TASK] Delete sys_file(_metadata) entries when a file is deleted

In order to keep sys_file and sys_file_processedfile
as much in sync with the real file system as possible
we delete the relevant sys_file and sys_file_metadata
entries as soon as a file is deleted.

Resolves: #51698
Releases: 6.2, 6.1, 6.0
Change-Id: Ifa6a565702c26dc02c01634076726ef9f2272f84
Reviewed-on: https://review.typo3.org/23671
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
typo3/sysext/core/Classes/Resource/Index/FileIndexRepository.php
typo3/sysext/core/Classes/Resource/Index/MetaDataRepository.php
typo3/sysext/core/Classes/Resource/ProcessedFile.php
typo3/sysext/core/Classes/Resource/ProcessedFileRepository.php
typo3/sysext/core/Classes/Resource/Processing/FileDeletionAspect.php [new file with mode: 0644]
typo3/sysext/core/ext_localconf.php