From a474bba899d41028ddcc6e2699c8690b11d3b1e2 Mon Sep 17 00:00:00 2001 From: Huang Junxiang Date: Thu, 20 Mar 2025 17:09:50 +0800 Subject: [PATCH] Supplement the upgrade documentation about removing the original Memcached (#482) --- manual/upgrade/upgrade_docker.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/manual/upgrade/upgrade_docker.md b/manual/upgrade/upgrade_docker.md index ce9fec83..5854c77a 100644 --- a/manual/upgrade/upgrade_docker.md +++ b/manual/upgrade/upgrade_docker.md @@ -35,10 +35,7 @@ From Seafile Docker 13.0, the `elasticsearch.yml` has separated from `seafile-se wget https://manual.seafile.com/13.0/repo/docker/pro/elasticsearch.yml ``` -4. Modify `.env`, add or modify the following fields: - - !!! tip - From Seafile 13, we recommend you to use ***Redis*** as the cache server for supporting some new features (please refer the ***upgradte notes***). You can also refer to more details about Redis in Seafile Docker [here](../setup/setup_pro_by_docker.md#about-redis). +4. Starting from Seafile 13, Redis will be recommended as the primary cache server for supporting some new features (please refer the ***upgradte notes***, you can also refer to more details about Redis in Seafile Docker [here](../setup/setup_pro_by_docker.md#about-redis)) and can be configured directly from environment variables. So you should modify `.env`, add or modify the following fields: ``` ## Cache @@ -54,6 +51,12 @@ From Seafile Docker 13.0, the `elasticsearch.yml` has separated from `seafile-se MEMCACHED_PORT=11211 ``` + Although you can configure the cache directly through environment variables, since Seafile Docker 12 uses Memcached by default, we recommend that you remove or modify the cache configuration in the following files to avoid ambiguity: + + - `seafile.conf`: remove the `[memcached]` section + + - `seahub_settings.py`: remove the key `default` in variable `CACHES` + 5. Start with `docker compose up`. ## Upgrade from 11.0 to 12.0