28 lines
569 B
Django/Jinja
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:[*]
|
|
}
|
|
}
|