-
-
Notifications
You must be signed in to change notification settings - Fork 766
Closed
Description
Many builds have the same relative file names, when global script cache is used that can create conflicts and undesired, this can be avoided by skipping the hash file and instead including the hash in the file name.
Also solves the original feedback below from @GeertvanHorrik
Thanks for the fast reply. We even templated our cake.config. Would it be possible to use > variables or how does it determine the final subfolder inside the cache.
For example (and I am happy to contribute), something like this:
- Cache path is set to %temp%\cake-scripts-cache\
- Subdirectory is a hash of all the script files to be compiled, so ends up in
%temp%\cake-scripts-cache[some-unique-hash]
I see 2 things that would be needed here:
- a lock file, so if 2 builds are running at the same time, cake knows not to use the > directory (yet). If the lock file is older than 5 minutes, assume it's broken and restart
- a hash calculation (fastest possible, but it should be fairly fast since I don't expect more than 50 files to be used for a script)
Originally posted by @GeertvanHorrik in #2650 (comment)
Reactions are currently unavailable