Merge "Cache static zuul resources in apache"
This commit is contained in:
commit
1c657be9e8
@ -55,8 +55,9 @@
|
|||||||
<IfModule mod_mem_cache.c>
|
<IfModule mod_mem_cache.c>
|
||||||
# TODO: Should we cache the rest of the API too?
|
# TODO: Should we cache the rest of the API too?
|
||||||
CacheEnable mem /api/status
|
CacheEnable mem /api/status
|
||||||
# 12MByte total cache size.
|
CacheEnable mem /static/.*
|
||||||
MCacheSize 12288
|
# 80MB max cache size. 10 objects at 8MB max each.
|
||||||
|
MCacheSize 81920
|
||||||
MCacheMaxObjectCount 10
|
MCacheMaxObjectCount 10
|
||||||
MCacheMinObjectSize 1
|
MCacheMinObjectSize 1
|
||||||
# 8MByte max size per cache entry
|
# 8MByte max size per cache entry
|
||||||
@ -65,6 +66,7 @@
|
|||||||
</IfModule>
|
</IfModule>
|
||||||
<IfModule mod_cache_disk.c>
|
<IfModule mod_cache_disk.c>
|
||||||
CacheEnable disk /api/status
|
CacheEnable disk /api/status
|
||||||
|
CacheEnable disk /static/.*
|
||||||
CacheRoot /var/cache/apache2/mod_cache_disk
|
CacheRoot /var/cache/apache2/mod_cache_disk
|
||||||
CacheMaxFileSize 10000000
|
CacheMaxFileSize 10000000
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
@ -53,6 +53,7 @@
|
|||||||
<IfModule mod_mem_cache.c>
|
<IfModule mod_mem_cache.c>
|
||||||
# TODO: Should we cache the rest of the API too?
|
# TODO: Should we cache the rest of the API too?
|
||||||
CacheEnable mem /api/tenant/.*/status
|
CacheEnable mem /api/tenant/.*/status
|
||||||
|
CacheEnable mem /static/.*
|
||||||
# 80MB max cache size. 10 objects at 8MB max each.
|
# 80MB max cache size. 10 objects at 8MB max each.
|
||||||
MCacheSize 81920
|
MCacheSize 81920
|
||||||
MCacheMaxObjectCount 10
|
MCacheMaxObjectCount 10
|
||||||
@ -63,6 +64,7 @@
|
|||||||
</IfModule>
|
</IfModule>
|
||||||
<IfModule mod_cache_disk.c>
|
<IfModule mod_cache_disk.c>
|
||||||
CacheEnable disk /api/tenant/.*/status
|
CacheEnable disk /api/tenant/.*/status
|
||||||
|
CacheEnable disk /static/.*
|
||||||
CacheRoot /var/cache/apache2/mod_cache_disk
|
CacheRoot /var/cache/apache2/mod_cache_disk
|
||||||
CacheMaxFileSize 10000000
|
CacheMaxFileSize 10000000
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user