[#1061] node: Set TTL for morph rule cache from morph config

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
Airat Arifullin 2024-04-02 12:40:56 +03:00
parent d5194ab2a6
commit 4080b99310

View file

@ -1083,7 +1083,7 @@ func initAccessPolicyEngine(_ context.Context, c *cfg) {
cacheSize := morphconfig.APEChainCacheSize(c.appCfg)
if cacheSize > 0 {
morphRuleStorage = newMorphCache(morphRuleStorage, int(cacheSize), morphconfig.CacheTTL(c.appCfg))
morphRuleStorage = newMorphCache(morphRuleStorage, int(cacheSize), c.cfgMorph.cacheTTL)
}
ape := newAccessPolicyEngine(morphRuleStorage, localOverrideDB)