summaryrefslogtreecommitdiffstats
path: root/sites
diff options
context:
space:
mode:
authoreffulgentsia2016-05-16 23:23:29 (GMT)
committereffulgentsia2016-05-16 23:23:29 (GMT)
commitcb310b69ad7ffab5d5d184acd70baa72fc49291b (patch)
treedcc6e218bf3975d0a41d9d1f149218d1b25c638e /sites
parenta9666b4ae85300ff9106144421a6582732c8f6cb (diff)
Issue #2699613 by alexpott, catch, Wim Leers, Berdir, dawehner, mpdonadio, borisson_, Fabianx: Set a shorter TTL for 404 responses in page_cache module
Diffstat (limited to 'sites')
-rw-r--r--sites/default/default.settings.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/sites/default/default.settings.php b/sites/default/default.settings.php
index 7f28c29..770a3a7 100644
--- a/sites/default/default.settings.php
+++ b/sites/default/default.settings.php
@@ -420,6 +420,20 @@ $settings['update_free_access'] = FALSE;
*/
# $settings['omit_vary_cookie'] = TRUE;
+
+/**
+ * Cache TTL for client error (4xx) responses.
+ *
+ * Items cached per-URL tend to result in a large number of cache items, and
+ * this can be problematic on 404 pages which by their nature are unbounded. A
+ * fixed TTL can be set for these items, defaulting to one hour, so that cache
+ * backends which do not support LRU can purge older entries. To disable caching
+ * of client error responses set the value to 0. Currently applies only to
+ * page_cache module.
+ */
+# $settings['cache_ttl_4xx'] = 3600;
+
+
/**
* Class Loader.
*