Skip to content
Snippets Groups Projects
Commit cb6bc853 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #198855 by dereine, ainigma32, sun: check_markup() hardcodes cache expiration.

parent f8fc9a18
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -760,9 +760,12 @@ function check_markup($text, $format_id = NULL, $langcode = '', $cache = FALSE)
}
}
// Store in cache with a minimum expiration time of 1 day.
// Cache the filtered text. This cache is infinitely valid. It becomes
// obsolete when $text changes (which leads to a new $cache_id). It is
// automatically flushed when the text format is updated.
// @see filter_format_save()
if ($cache) {
cache_set($cache_id, $text, 'cache_filter', REQUEST_TIME + (60 * 60 * 24));
cache_set($cache_id, $text, 'cache_filter');
}
return $text;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment