1
0
Fork 0
Commit Graph

38 Commits (263121049334fc5af1f6b3c23292831b02ae2369)

Author SHA1 Message Date
Nils Adermann 392d0abd21 Rename test files and standardize on allow list rather than whitelist 2020-03-27 22:15:04 +01:00
Christian Ego 7c64300a1b using emptyDirectory instead of remove for clearing the cache 2019-03-11 10:24:39 +01:00
Jordi Boggiano 02ceb74151 Tweak --no-cache option to be available globally and to not break VCS drivers relying on it, refs #7880, refs #6650 2019-01-28 15:29:37 +01:00
Markus Staab 3b647f8686
prevent preg_replace() calls when cache is not enabled 2018-07-18 18:24:11 +02:00
Brandon Max 24b8fea48a Cache: clear cache using removeDirectory 2017-06-16 16:25:11 -04:00
Jordi Boggiano 122e422682 CS fixes 2017-03-08 15:16:44 +01:00
Jordi Boggiano fd6455218e Avoid warnings in case cache dir is explicitly directed to /dev/null, fixes #5468 2016-06-25 15:49:52 +01:00
Niels Keurentjes 254453f5b5 Wrap final attempt to touch a cache file in Silencer. 2016-02-16 14:01:21 +01:00
Jordi Boggiano 49d7d65933 Add verbosity input support to IOInterface 2016-01-29 10:14:12 +00:00
Niels Keurentjes 18cd4f966b Added silencer utility to more gracefully handle error suppression without hiding errors or worse. Fixes #4203, #4683 2016-01-25 23:37:54 +01:00
Jordi Boggiano fc0da27d84 Add more debug output when writing to cache 2015-11-10 13:12:53 +00:00
Jordi Boggiano 3c5f3e6dc7 Warn if cache isnt writable as well 2015-08-14 13:30:42 +01:00
Rob Bast 61dc752c78 Warn if cache directory cannot be created
closes #1161
2015-08-14 14:21:12 +02:00
Jordi Boggiano 812523f1ab Add more debug info on cache write failure, refs #4249 2015-08-10 10:07:48 +01:00
Jordi Boggiano b181822e90 Fix case where touch() fails due to incorrect ownership, fixes #4070 2015-05-28 15:26:56 +01:00
Josh Di Fabio 051b7bd44b Touch access time only when reading from cache 2015-04-23 16:08:03 +01:00
Rob Bast cb336a5416 Implement writeError throughout Composer 2015-02-25 11:00:35 +01:00
Jordi Boggiano 94926218e8 CS fixes 2014-10-17 18:57:27 +01:00
Jordi Boggiano be53c5dd2c Merge pull request #3207 from cs278/handle-low-diskspace
Handle low diskspace errors
2014-10-17 17:12:31 +01:00
Chris Smith 439095e446 Handle incomplete file write to cache 2014-08-14 00:54:03 +01:00
Jordi Boggiano 745dcbce33 Fix file deletions to always use a delayed retry on windows, fixes #3074 2014-06-29 18:49:45 +02:00
Jordi Boggiano ac497feaba CS fixes 2014-06-10 16:13:12 +02:00
Michael Kühn 5b7e39e919 fixed: dead symlink breaks gc 2014-04-07 14:57:45 +02:00
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.
2014-02-12 15:01:21 +01:00
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
2013-11-24 10:55:25 +01:00
Jordi Boggiano 8d0b7f278e CS fixes 2013-06-13 13:28:24 +02:00
Jordi Boggiano 950fc7e66e Add debug output to cache class 2013-05-22 11:25:53 +02:00
Jordi Boggiano 514a3cde77 CS fixes 2013-01-05 20:01:58 +01:00
Galymzhan 219b489d01 add size-based limit for files cache, fixes #1321 2012-12-17 01:19:16 +06:00
Jordi Boggiano 07f7487c60 Clear cached files when they fail to extract or validate, refs #941 2012-12-05 10:10:54 +01:00
Jordi Boggiano 15475f0ef2 Rename cache dirs to consolidate them by purpose 2012-11-23 00:15:14 +01:00
Jordi Boggiano 5a9d986e67 Implement cache GC and fix keys 2012-11-10 23:17:36 +01:00
Jordi Boggiano 79bf55e505 Standardize return valuse of the cache class 2012-11-10 22:17:46 +01:00
Jordi Boggiano fb3a43b2f0 Add local cache to dist downloads 2012-11-10 22:11:34 +01:00
Jordi Boggiano 07f72e9fb6 Add support for provider listings 2012-10-14 16:33:53 +02:00
Jordi Boggiano 6d1377838b Handle weird chars in cache keys 2012-06-18 15:34:08 +02:00
Jordi Boggiano fc29487a2a Add home config key and use it to create the cache instance 2012-04-09 16:36:06 +02:00
Jordi Boggiano 0d97ec4783 Add cache to the composer repositories 2012-04-06 22:39:43 +02:00