This is an automated email from the ASF dual-hosted git repository.

zregvart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-website.git


The following commit(s) were added to refs/heads/master by this push:
     new e6e65c1  chore: configure cache timeouts
e6e65c1 is described below

commit e6e65c1b9c15f614ed889f296f94aecfaa07a866
Author: Zoran Regvart <zregv...@apache.org>
AuthorDate: Wed Apr 1 16:53:13 2020 +0200

    chore: configure cache timeouts
    
    Without cache timeouts we might load old data from remote sites we have
    in the cache. This sets the cache max age to 12h.
---
 config.toml | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/config.toml b/config.toml
index ae9c4ab..cc9f14c 100644
--- a/config.toml
+++ b/config.toml
@@ -13,6 +13,16 @@ timeout = 300000
     organizationLogo = "https://camel.apache.org/_/img/logo-d.svg";
     organizationDescription = "Apache Camel ™ is a versatile open-source 
integration framework based on known Enterprise Integration Patterns. Camel 
empowers you to define routing and mediation rules in a variety of 
domain-specific languages, including a Java-based Fluent API, Spring or 
Blueprint XML Configuration files, and a Scala DSL."
 
+[caches]
+
+    [caches.getjson]
+    dir = ":cacheDir/:project"
+    maxAge = "12h"
+
+    [caches.getcsv]
+    dir = ":cacheDir/:project"
+    maxAge = "12h"
+
 [[menu.main]]
     name = "Blog"
     weight = 2
@@ -128,4 +138,4 @@ timeout = 300000
 
   [[module.mounts]]
     source = "documentation/_/data"
-    target = "data"
\ No newline at end of file
+    target = "data"

Reply via email to