Memcache: PROVIDER_CONFIG is not restored if altered previously #453

Closed
opened 2023-06-02 10:13:30 +00:00 by pat-s · 5 comments
Member

I just switched from redis-cluster to memcache and noticed that session.PROVIDER_CONFIG is not restored to the respective memcache DNS.

It is done for cache.HOST: https://gitea.com/gitea/helm-chart/src/branch/main/templates/_helpers.tpl#L233 and should most likely be done in the same way for session.PROVIDER_CONFIG.

I just switched from redis-cluster to memcache and noticed that `session.PROVIDER_CONFIG` is not restored to the respective memcache DNS. It is done for `cache.HOST`: https://gitea.com/gitea/helm-chart/src/branch/main/templates/_helpers.tpl#L233 and should most likely be done in the same way for `session.PROVIDER_CONFIG`.
pat-s added the
kind
bug
label 2023-06-02 10:13:30 +00:00
Member

Isn't that similar to #356?

Isn't that similar to #356?
Author
Member

Partly as the old config is not removed when switching session providers but the actual issue is that the chart is not defining memcache for session.

I made the issue in a hurry and I just realized that the chart is (most likely on purpose) not setting anything for config.session. I thought the default was memcache there as well but now I am not sure anymore...

Partly as the old config is not removed when switching session providers but the actual issue is that the chart is not defining memcache for session. I made the issue in a hurry and I just realized that the chart is (most likely on purpose) not setting anything for `config.session`. I thought the default was `memcache` there as well but now I am not sure anymore...
Member

I believe the chart uses the default for sessions. Which is memory.

I believe the chart uses the default for sessions. Which is memory.
Author
Member

Good point. Then it's probably only #356 again and I should have set it to memory instead of memcache.

Given we already have memcache, it could also be used for session.

Good point. Then it's probably only #356 again and I should have set it to `memory` instead of `memcache`. Given we already have `memcache`, it could also be used for `session`.
Author
Member

Closing in favor of #356.

Closing in favor of #356.
pat-s closed this issue 2023-11-15 18:26:42 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitea/helm-chart#453
No description provided.