cloudflare / cloudflare/lua-upstream-cache-nginx-module
http_cache module not found when lua_code_cache is off
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 124
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
This might be an issue not specific to this module but this is where i encountered it.
if i set lua_code_cache off in http block, i get the error the module is not found, when i comment that config line, the module loads and everything works.
Any idea why this might be happening?
I needed this in order to work on the scripts without restarting nginx all the time.
Also, not sure if it's relevant, but openresty is running in docker (based on alpine).
Thank you
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the report in an OpenResty Docker image based on Alpine, first with lua_code_cache off in the http block and then with that setting removed. Trace how the http_cache module is located and loaded in both cases; done means identifying the cause and documenting or implementing a verified fix.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, lua, nginx
- Domain
- backend, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100