Fix syntax.
Fix missing import.
Fix syntax.
Simplify cache duration config item.