6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-09-21 08:59:02 +00:00
tutor/tutor/templates/build/openedx
Régis Behmo 59b1987ff1 fix: infinite cache growth
See the discussion here: https://github.com/overhangio/tutor/pull/984
And the upstream PR here: https://github.com/openedx/edx-platform/pull/34210

The tl;dr is that the Redis course structure cache was growing without
bounds. While the upstream fix should resolve that issue, we decided
that Tutor should have a maxmemory limit and an eviction policy set for
operational safety.

Thus, Redis now has a 4gb maxmemory. If you need more memory on your
instance, you should implement the "redis-conf" patch.

To manually expire existing keys, run:

    tutor local run cms ./manage.py cms shell -c "from django.core.cache import caches; c = caches['course_structure_cache']; [c.expire(key, 604800) for key in c.keys('*')]"
2024-02-19 09:43:40 +01:00
..
bin refactor: get rid of the openedx Docker entrypoint 2022-04-15 15:37:56 +02:00
locale Make it easy to add custom translation strings to edx-platform 2020-04-16 19:30:08 +02:00
settings feat: configure uwsgi through an ini file 2023-03-15 11:19:22 +01:00
themes Tutor v3 complete rewrite 2019-02-09 20:30:01 +01:00
Dockerfile fix: infinite cache growth 2024-02-19 09:43:40 +01:00
revisions.yml feat: upgrade to quince 2023-12-11 20:41:32 +01:00