The current 2.1 mod_disk_cache allows any number of workers to be actively trying to cache the same object. This is because of the use of apr_file_mktemp.
This patch makes the tempfiles the same per cache object rather than "random". I basically added a temp_file() that mimics data_file() and header_file(). This way only one thread is trying to cache that object and avoids a "thundering herd." The other threads fail the EXCL flag, and serve like normal.
newtemp.patch
Description: Binary data