You need to add rule to dispatcher for caching.
To cache all use the following code in ams_publish_cache.any
## Default allow all items to cache
/0000 {
/glob "*"
/type "allow"
}
## Don't cache csrf login tokens
/0001 {
/glob "/libs/granite/csrf/token.json"
/type "deny"
}
To cache specific url parameter use following code
/cache
{
/docroot "/path/to/docroot"
/rules
{
/0000
{
/type "allow"
/url "/content/*"
/cache
{
/enable "1"
/useFilesystem "0"
}
}
}
/cache
{
/docroot "/path/to/cache"
/type "file"
/urlparams "param1,param2"
}
}