diff --git a/playbooks/roles/zuul-web/templates/openstack.vhost.j2 b/playbooks/roles/zuul-web/templates/openstack.vhost.j2 index bb4b6039a6..328d1a38cb 100644 --- a/playbooks/roles/zuul-web/templates/openstack.vhost.j2 +++ b/playbooks/roles/zuul-web/templates/openstack.vhost.j2 @@ -55,8 +55,9 @@ # TODO: Should we cache the rest of the API too? CacheEnable mem /api/status - # 12MByte total cache size. - MCacheSize 12288 + CacheEnable mem /static/.* + # 80MB max cache size. 10 objects at 8MB max each. + MCacheSize 81920 MCacheMaxObjectCount 10 MCacheMinObjectSize 1 # 8MByte max size per cache entry @@ -65,6 +66,7 @@ CacheEnable disk /api/status + CacheEnable disk /static/.* CacheRoot /var/cache/apache2/mod_cache_disk CacheMaxFileSize 10000000 diff --git a/playbooks/roles/zuul-web/templates/zuul.vhost.j2 b/playbooks/roles/zuul-web/templates/zuul.vhost.j2 index 8d142b8ef8..a633022127 100644 --- a/playbooks/roles/zuul-web/templates/zuul.vhost.j2 +++ b/playbooks/roles/zuul-web/templates/zuul.vhost.j2 @@ -53,6 +53,7 @@ # TODO: Should we cache the rest of the API too? CacheEnable mem /api/tenant/.*/status + CacheEnable mem /static/.* # 80MB max cache size. 10 objects at 8MB max each. MCacheSize 81920 MCacheMaxObjectCount 10 @@ -63,6 +64,7 @@ CacheEnable disk /api/tenant/.*/status + CacheEnable disk /static/.* CacheRoot /var/cache/apache2/mod_cache_disk CacheMaxFileSize 10000000