This repository has been archived by the owner on Jan 4, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Store each cached file in a single directory using the file checksum as filename. That was, if two tasks distribute a file with the exact same content, it is storred only once on disk in the cache directory. The original filename is used to build the spool hierarchy so given the following specification: ``` [ { "filename": "database_delete.sh", "sha256": "27cf85fc65b33bd3492e0188533d4a25d67cd810d91f61b4baf6e89cc675539a", "size_bytes": 140, "uri": { "path": "/puppet/v3/static_file_content/modules/odoo/tasks/database_delete.sh", "params": { "environment": "production", "code_id": "cf812ee55e84bf63a0b8ee4a08b2c3fad26dc313" } } }, { "filename": "odoo/files/database-delete.py", "sha256": "deffdfa89fac5e02d689d26ae43c933e47cb10ea12d56dd6c72184043bc56f25", "size_bytes": 96, "uri": { "path": "/puppet/v3/static_file_content/modules/odoo/files/database-delete.py", "params": { "environment": "production", "code_id": "cf812ee55e84bf63a0b8ee4a08b2c3fad26dc313" } } } ] ``` we end-up with the following hierarchy of files in the cache: ``` <cache-directory> |-> 27cf85fc65b33bd3492e0188533d4a25d67cd810d91f61b4baf6e89cc675539a `-> deffdfa89fac5e02d689d26ae43c933e47cb10ea12d56dd6c72184043bc56f25 ```
- Loading branch information