}
# 14. This should still allow the creation of a new entry
-&control.Cache-TTL := -1
+&control.Cache-TTL := -2
cache
if (!ok) {
}
# 20. Check that a new entry is created
-&control.Cache-TTL := -1
+&control.Cache-TTL := -2
cache
if (!updated) {
# 24. Check Cache-Merge = yes works as expected (should update current request)
&control.Tmp-String-1 := 'cache me3'
-&control.Cache-TTL := -1
+&control.Cache-TTL := -2
&control.Cache-Merge-New := yes
cache
}
# 14. This should still allow the creation of a new entry
-&control.Cache-TTL := -1
+&control.Cache-TTL := -2
cache.store
if (!updated) {
}
# 20. Check that a new entry is created
-&control.Cache-TTL := -1
+&control.Cache-TTL := -2
cache.store
if (!updated) {
# 24. Check Cache-Merge = yes works as expected (should update current request)
&control.Tmp-String-1 := 'cache me3'
-&control.Cache-TTL := -1
+&control.Cache-TTL := -2
&control.Cache-Merge-New := yes
cache.store
driver = "rbtree"
key = "%{Tmp-String-0}"
- ttl = 2
+ ttl = 5
update {
&Tmp-String-1 := &control.Tmp-String-1[0]
driver = "rbtree"
key = "%{Tmp-String-0}"
- ttl = 2
+ ttl = 5
#
# Update sections in the cache module use very similar
driver = "rbtree"
key = &Tmp-Octets-0
- ttl = 2
+ ttl = 5
update {
&Tmp-String-1 := &Tmp-String-1[0]
driver = "rbtree"
key = &Tmp-IP-Address-0
- ttl = 2
+ ttl = 5
update {
&Tmp-String-1 := &Tmp-String-1[0]
}
key = "$ENV{MODULE_TEST_UNLANG}%{Tmp-String-0}"
- ttl = 2
+ ttl = 5
update {
&Tmp-String-1 := &control.Tmp-String-1[0]
}
key = "$ENV{MODULE_TEST_UNLANG}%{Tmp-String-0}"
- ttl = 2
+ ttl = 5
#
# Update sections in the cache module use very similar
}
key = &Tmp-Octets-0
- ttl = 2
+ ttl = 5
update {
&Tmp-String-1 := &Tmp-String-1[0]
}
key = &Tmp-IP-Address-0
- ttl = 2
+ ttl = 5
update {
&Tmp-String-1 := &Tmp-String-1[0]