Commit graph

103 commits

Author SHA1 Message Date
RhodeCode Admin
166db21812 core: run ruff format 2025-01-13 17:47:37 +01:00
RhodeCode Admin
3a41a8b915 fix(file-caching): fixed cases when old cache was used before changes to operate on bytestrings 2024-12-04 22:33:45 +01:00
RhodeCode Admin
82f0f8d214 core: updated copyright to 2024 2024-11-12 16:39:07 +01:00
RhodeCode Admin
7d196811c4 feat(redis): added ability to specify a redis key prefix for all cache regions of dogpile that use redis backend 2024-10-23 22:11:27 +02:00
RhodeCode Admin
f096d65f31 caches: improve logging 2024-10-23 11:31:17 +02:00
RhodeCode Admin
0800cfc3fe caches: allow force re-init of cache region for re-creating the cache 2024-10-22 12:12:52 +02:00
RhodeCode Admin
9a46cbc018 chore(caches): cleanup cache lib and added cleanup backend 2024-08-07 13:40:30 +02:00
RhodeCode Admin
984a9a564f feat(archive-cache): implemented s3 based backend for filecaches 2024-06-13 21:29:37 +02:00
RhodeCode Admin
3d0e81968b feat(disk-cache): use fsync to force flush changes on NFS, and use retry mechanism to archive caches... 2024-06-10 17:01:42 +02:00
RhodeCode Admin
164d313bea feat(archive-cache): added retry mechanism, and some code cleanups 2024-06-09 22:01:19 +02:00
RhodeCode Admin
f642c7aebf feat(archive-cache): re-calculate size better if we miss it in stats 2024-06-06 19:50:31 +02:00
RhodeCode Admin
4ce101104b feat(archive-cache): added logging and relative imports 2024-06-06 16:54:19 +02:00
RhodeCode Admin
fd5f035c74 feat(archive-cache): implemented eviction policy logic 2024-06-06 14:48:07 +02:00
RhodeCode Admin
308a5029a1 feat(archive-cache): implement more usage stats for later easier evictions 2024-06-06 14:43:26 +02:00
RhodeCode Admin
a98ae47e79 feat(system-info): properly report storage stats after diskcache removal 2024-06-05 16:27:54 +02:00
RhodeCode Admin
39bed20bcb feat(disk-cache): rewrite diskcache backend to be k8s and NFS safe.
- no longer depend on diskcache
- use simpler version with Redis lock, and filesystem storage
- fixes RCCE-78
2024-06-05 12:32:12 +02:00
RhodeCode Admin
191d46f64a chore(rc-cache): synced with CE code 2024-02-19 09:04:35 +01:00
RhodeCode Admin
76441ed70b feature(caches): refactor how invalidationContext works, fixes many issues with the previousl solution
- much more simpler now
- no more key leak
2024-02-08 10:52:32 +01:00
RhodeCode Admin
cf9fad62cb fix(caches): removed cacheKey cleanup logic as its proven to fail, and is not reliable. 2024-02-07 13:19:03 +01:00
RhodeCode Admin
49911056f3 fix(permission-flush): use delete method for permission cache invalidation as it's multi-process safe.
Fixes RCCE-23
2024-01-12 15:25:27 +01:00
RhodeCode Admin
5c1eba122d chore(code-cleanups): fixed spelling on variable 2023-11-23 09:36:54 +01:00
RhodeCode Admin
8ae0e8de44 caches: make sure the global cache namespace prefixes are used.
- fixes problems when porting from old RC to new python3 based and different serialization mech
2023-07-26 16:15:52 +02:00
RhodeCode Admin
b82349386a modernize: python3 updates 2023-07-18 14:50:17 +02:00
RhodeCode Admin
42301154fc copyrights: updated for 2023 2023-07-18 11:57:27 +02:00
RhodeCode Admin
90f49ed2ad caches: new updated rc_cache with archive cache module and python3 changes 2023-07-18 11:27:55 +02:00
RhodeCode Admin
5357fb11f2 libs: removed utf8 markers 2023-07-18 10:57:59 +02:00
RhodeCode Admin
ebdcda5477 caches: dbm backend needs to use bytes to list keys 2023-05-11 12:11:16 +02:00
RhodeCode Admin
745c3af99f caches: use new sqlalchemy 1.4 caching query approach 2023-03-28 10:20:08 +02:00
RhodeCode Admin
38d873cd45 rccache: refactor and update code to support latest dogpile code changes (mostly on custom serializers) 2023-03-20 22:07:42 +01:00
RhodeCode Admin
e5baa69194 python3: fix itervalues 2023-03-10 11:43:16 +01:00
RhodeCode Admin
aab457fdca python3: removed more unicode usage 2023-03-10 10:05:54 +01:00
RhodeCode Admin
7e8aaef6c9 caches: fixed utils imports 2023-03-06 23:09:17 +01:00
RhodeCode Admin
b5255c2532 python3: fixed some compat problems 2023-03-06 22:20:25 +01:00
RhodeCode Admin
dbf975898e py3: remove use of pyramid.compat 2023-03-06 15:52:51 +01:00
RhodeCode Admin
72d370c14e cache-keys: fix inifinite look of using atexit with signals.
This prevented a grafecull shutdown of gunicorn workers.
2023-01-18 22:11:31 +01:00
RhodeCode Admin
a664610f98 caches: log properly how we cleanup cache keys 2023-01-16 12:42:02 +01:00
RhodeCode Admin
b2ee30b85a caches: make a set copy to edit it during operation 2023-01-15 21:23:20 +01:00
RhodeCode Admin
c07d61211b caches: pass synchronize session to cleanup cache_keys to fix some errors 2023-01-15 10:01:07 +01:00
RhodeCode Admin
d8be76e7ab cache_keys: fix prefix deletion 2023-01-14 20:16:58 +01:00
RhodeCode Admin
fbadb2be0b caches: don't clear all cache keys on exit as we lost state for not-recycled workers 2023-01-13 21:44:59 +01:00
RhodeCode Admin
3535beb1a7 caches: use a better logic to clear cache keys 2023-01-13 07:43:17 +01:00
RhodeCode Admin
faa449987b logging: expose extra metadata to various important logs for loki 2022-10-27 22:49:17 +02:00
RhodeCode Admin
85f6a432fb caches: fixed unicode mismatch with types 2022-10-26 11:17:53 +02:00
RhodeCode Admin
298c38a0c3 caches: fixed unicode errors on non-ascii cache keys 2022-10-26 10:38:13 +02:00
RhodeCode Admin
093cf251d5 caches: make sure we init caches on repo names withou '/' to not create a new cache subpath 2022-09-01 22:00:13 +02:00
RhodeCode Admin
4508de422b caches: fixed error for unique non-ascii cache keys 2022-07-25 15:07:29 +02:00
RhodeCode Admin
98cc67d889 caches: added debug and timings 2021-10-12 13:40:31 +02:00
RhodeCode Admin
d811485440 locks: handle refresh thread already started 2021-07-27 10:08:28 +02:00
RhodeCode Admin
8fe339248e caches: fixed wrong except 2021-07-24 08:11:42 +02:00
RhodeCode Admin
7170e63907 caches: use the same lock instance, otherwise we won't release it.
Also handle AlreadyAquired so locks skip that case and not throw a 500 error
2021-07-23 11:21:58 +02:00