Commit graph

39 commits

Author SHA1 Message Date
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
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
745c3af99f caches: use new sqlalchemy 1.4 caching query approach 2023-03-28 10:20:08 +02: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
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
98cc67d889 caches: added debug and timings 2021-10-12 13:40:31 +02:00
RhodeCode Admin
3ce837d046 caches: introduce invalidation as a safer ways to expire keys, deleting them are more problematic. 2021-07-23 11:09:12 +02:00
Marcin Kuzminski
fe96e16646 code: update copyrights to 2020 2020-04-16 00:34:52 +02:00
Marcin Kuzminski
94d571c2bd cython: fixed problems with cythonized decorators on py2.
- This is just a temporary fix
- We'll remove this once py3 migration is done
2020-01-08 12:25:40 +01:00
Marcin Kuzminski
08399d7563 caches: added reprs 2019-09-22 18:02:28 +02:00
Marcin Kuzminski
16f3b5992a cache-keys: register and self cleanup cache keys used for invalidation to prevent leaking lot of them into DB on worker recycle 2019-08-20 21:18:12 +02:00
Marcin Kuzminski
0cb728cb99 cache: updated cache decorators based on latest code from dogpile 2019-07-23 12:30:39 +02:00
Marcin Kuzminski
3167ea3c86 caches: newly generated cache object should have always unique UIDs to prevent
situation when after restart of services we get back to initial cache keys.
2019-07-18 21:12:48 +02:00
Marcin Kuzminski
928652312a core: added more accurate time measurement for called functions 2019-07-17 16:28:41 +02:00
Marcin Kuzminski
a356085774 caches: synced cache logic with vcsserver. 2019-07-17 14:34:03 +02:00
Marcin Kuzminski
0b076e1f65 caches: updated cache backend to new vcsserver caches implementation. 2019-07-17 00:14:26 +02:00
Marcin Kuzminski
e8388893db caches: add cython compat to our own decorator for caching 2019-02-23 20:07:06 +01:00
Daniel Dourvaris
96fa4e0bdc py3: remove usage of basestring 2019-01-22 23:06:49 +01:00
Marcin Kuzminski
bd1a9c8201 docs: updated copyrights to 2019 2019-01-02 18:13:27 +01:00
Marcin Kuzminski
9033601562 logging: use lazy parameter evaluation in log calls. 2018-09-13 17:41:35 +02:00
Marcin Kuzminski
e7c5cbb270 caches: don't try to delete keys if there aren't any to delete.
- This is problematic for REDIS backend.
2018-08-22 13:22:39 +02:00
Marcin Kuzminski
c218e2a9ea caches: use .refresh() instead of .invalidate()
- .invalidate() does a delete of cached valued under a key, which means
in previous logic we delete, get_or_create, and compute.
- .refresh() is simply replacing exising key with newly computed values, this
creates less locks, and it's faster.
2018-08-03 14:34:33 +02:00
Marcin Kuzminski
543be29fea caches: improve logging. 2018-08-02 22:20:03 +02:00
Marcin Kuzminski
49f08fd080 caches: store computation time inside context manager as helper. Since the with block is full
calculation we can use it to calculate the function execution time.
2018-08-02 22:14:42 +02:00
Marcin Kuzminski
64ee0ddc8f caches: turn off thread scoped caches, and allow .ini override. Thread scoped caches are only usefull for development on using pserve 2018-08-02 18:28:22 +02:00
Marcin Kuzminski
f1497f5afd caches: new cache context managers.
- deprecate beaker cache completly
- use new cache decorators from dogpile
- use a proper per cache key invalidation
2018-08-02 18:04:52 +02:00
Marcin Kuzminski
6e45dc9605 caches: introduce new conditional cache function. 2018-07-14 18:17:02 +02:00
Marcin Kuzminski
ec504c9907 caches: use delete_multi for clearing out cache keys.
- This is a safer and more efficient way of purging many keys.
- For file based cache it only opens the DB once
2018-07-13 18:39:52 +02:00
Marcin Kuzminski
a48ab8a32d caches: don't use beaker for file caches anymore 2018-07-06 12:55:13 +02:00
Marcin Kuzminski
ddc445856e caches: rewrite of auth/permission caches to dogpile. 2018-07-05 20:14:33 +02:00