35 Commits (0ee0138bed31aa2c911041bf63f09857eff8da7a)

Author SHA1 Message Date
Markus Staab 3b647f8686
prevent preg_replace() calls when cache is not enabled 6 years ago
Brandon Max 24b8fea48a Cache: clear cache using removeDirectory 7 years ago
Jordi Boggiano 122e422682 CS fixes 7 years ago
Jordi Boggiano fd6455218e Avoid warnings in case cache dir is explicitly directed to /dev/null, fixes #5468 8 years ago
Niels Keurentjes 254453f5b5 Wrap final attempt to touch a cache file in Silencer. 8 years ago
Jordi Boggiano 49d7d65933 Add verbosity input support to IOInterface 9 years ago
Niels Keurentjes 18cd4f966b Added silencer utility to more gracefully handle error suppression without hiding errors or worse. Fixes #4203, #4683 9 years ago
Jordi Boggiano fc0da27d84 Add more debug output when writing to cache 9 years ago
Jordi Boggiano 3c5f3e6dc7 Warn if cache isnt writable as well 9 years ago
Rob Bast 61dc752c78 Warn if cache directory cannot be created
closes #1161
9 years ago
Jordi Boggiano 812523f1ab Add more debug info on cache write failure, refs #4249 9 years ago
Jordi Boggiano b181822e90 Fix case where touch() fails due to incorrect ownership, fixes #4070 9 years ago
Josh Di Fabio 051b7bd44b Touch access time only when reading from cache 9 years ago
Rob Bast cb336a5416 Implement writeError throughout Composer 9 years ago
Jordi Boggiano 94926218e8 CS fixes 10 years ago
Jordi Boggiano be53c5dd2c Merge pull request #3207 from cs278/handle-low-diskspace
Handle low diskspace errors
10 years ago
Chris Smith 439095e446 Handle incomplete file write to cache 10 years ago
Jordi Boggiano 745dcbce33 Fix file deletions to always use a delayed retry on windows, fixes #3074 10 years ago
Jordi Boggiano ac497feaba CS fixes 10 years ago
Michael Kühn 5b7e39e919 fixed: dead symlink breaks gc 10 years ago
Guillaume LECERF 44fd75ef38 Fix Cache::gc() when COMPOSER_CACHE_DIR=/dev/null
If we set COMPOSER_CACHE_DIR=/dev/null, and the garbage collector
is triggered, we end up with the following error :

The "/dev/null/" directory does not exist.

This is because the Cache::gc() function does not check for Cache::enabled
and instanciates a Finder unconditionnaly.

Fix this by adding a check on Cache::enabled.
11 years ago
user a956ce9bb1 Use 'cache-files-ttl' for cache gc, fixes #2441
The configuration option 'cache-ttl' was used instead of 'cache-files-ttl' to determine
whether or not a cache gc should be performed.

* changed 'cache-ttl' to 'cache-files-ttl' to determine if a gc should be performed
* refactored FileDownloader to allow for easier testing
* added test to ensure that the gc is called with the proper config option
11 years ago
Jordi Boggiano 8d0b7f278e CS fixes 11 years ago
Jordi Boggiano 950fc7e66e Add debug output to cache class 11 years ago
Jordi Boggiano 514a3cde77 CS fixes 12 years ago
Galymzhan 219b489d01 add size-based limit for files cache, fixes #1321 12 years ago
Jordi Boggiano 07f7487c60 Clear cached files when they fail to extract or validate, refs #941 12 years ago
Jordi Boggiano 15475f0ef2 Rename cache dirs to consolidate them by purpose 12 years ago
Jordi Boggiano 5a9d986e67 Implement cache GC and fix keys 12 years ago
Jordi Boggiano 79bf55e505 Standardize return valuse of the cache class 12 years ago
Jordi Boggiano fb3a43b2f0 Add local cache to dist downloads 12 years ago
Jordi Boggiano 07f72e9fb6 Add support for provider listings 12 years ago
Jordi Boggiano 6d1377838b Handle weird chars in cache keys 12 years ago
Jordi Boggiano fc29487a2a Add home config key and use it to create the cache instance 12 years ago
Jordi Boggiano 0d97ec4783 Add cache to the composer repositories 12 years ago