ezsystems/ezpublish — pull request #468 by jjCavalleri (2012-10-12 20:48:08+00:00)
Title: Implemented #19831: eZClusterFileHandler::cleanupEmptyDirectories() is called too often

There are two commits within this pull request.

The first one is a generic improvement. If we're attempting to remove a subtree, why would we be interested in creating it's root, in case it does not exist?

The second one implements the improvement itself.
If the new file.ini setting ([CleanupEmptyDirectories] DeferToCronjob is set to enabled, eZDir::cleanupEmptyDirectories will append the dir to the list of pending actions.
The cronjob that will process the directories removal is not active by default