cloudflare / cloudflare/lua-upstream-cache-nginx-module

http_cache module not found when lua_code_cache is off

オープン
#7 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C
スター
124
フォーク
40
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Alpine ベースの OpenResty Docker イメージでこの報告を再現します。まず `http` ブロックで `lua_code_cache off` を指定し、その後その設定を削除して再現します。両方の場合について、`http_cache` モジュールがどのように検索され、ロードされるかを追跡します。原因を特定し、検証済みの修正を文書化または実装できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
docker, lua, nginx
領域
backend, devops
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。