infra/ansible/roles/freeradius/templates/cache.j2
2026-07-12 15:35:31 -05:00

28 lines
569 B
Django/Jinja

# -*- text -*-
##
## mods-available/cache -- Attribute cache (reduces SQL load)
##
## Managed by Ansible — do not edit manually.
##
cache {
driver = "rlm_cache_rbtree"
key = "%{User-Name}"
# Cache entries for 24 hours
ttl = 86400
add_stats = no
update {
# Cache the Cleartext-Password so PAP/CHAP/MS-CHAP work without SQL
&control:Cleartext-Password += &control:Cleartext-Password
# Cache group membership
&control:SQL-Group += &control:SQL-Group
# Cache all reply attributes (Framed-IP-Address, rate limits, etc.)
&reply: += &reply:[*]
}
}