Skip to content

Allow memcached host and port to be configured via .env#969

Merged
barryo merged 1 commit intoinex:mainfrom
fmcglinn:fix/master/config_memcached_env
Apr 23, 2026
Merged

Allow memcached host and port to be configured via .env#969
barryo merged 1 commit intoinex:mainfrom
fmcglinn:fix/master/config_memcached_env

Conversation

@fmcglinn
Copy link
Copy Markdown

[BF] Summary of fix - fixes [inex]/IXP-Manager#968

Problem Statement: Memcached is currently hard coded to 127.0.0.1:11211.
Change: Add env value (with defaults matching existing behaviour), this allows the ability to move it either inside a docker container, or another box / cluster
Risk/Reward: Low risk, as default values that match existing behaviour can be passed.

      The memcached cache store had its host and port hardcoded to
      127.0.0.1:11211, unlike Redis which already reads from env vars
      in config/database.php. This makes it impossible to use memcached
      running on a separate host (e.g. in a Docker container) without
      modifying config/cache.php directly.

      Read MEMCACHED_HOST and MEMCACHED_PORT from the environment with
      the existing values as defaults, matching the convention used by
      the Redis configuration.
@barryo barryo merged commit 0d98d6a into inex:main Apr 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants