Skip to main content

init_cache_namespace

Function init_cache_namespace 

Source
fn init_cache_namespace(mode: &str)
Expand description

发布命名空间(plan §6.7):一个 SSR 缓存实例只服务一个发布, 发布变化即整表失效,杜绝缓存命中跨发布「串味」。release 取 发布清单(<site_root>/release-manifest.json)的 release_id; dev 无清单时回退构建信息(git describe 含 dirty 标记)。