Details
-
Sub-task
-
Resolution: Fixed
-
High
-
None
-
None
Description
(with DFS configured) During the cache purge, called by example via php bin/php/ezcache.php --clear-all --purge command, the _purgeByLike method is called (https://github.com/ezsystems/ezpublish-legacy-ee/blob/5.4/kernel/private/classes/clusterfilehandlers/dfsbackends/mysqli.php#L337). This method deletes file metadata in the transaction, however, it also deletes the physical file regardless of the transaction result: https://github.com/ezsystems/ezpublish-legacy-ee/blob/5.4/kernel/private/classes/clusterfilehandlers/dfsbackends/mysqli.php#L393. If the transaction fails, this causes the content view cache to NOT be regenerated correctly (because the metadata for the cache file still exists) and instead the blank page is displayed.