From 96b748bfbe29a2367231b936ec181d282039f7fd Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Wed, 17 Nov 2021 11:51:55 -0800 Subject: [PATCH] Bust stylesheet cache group --- includes/sanitizers/class-amp-style-sanitizer.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/sanitizers/class-amp-style-sanitizer.php b/includes/sanitizers/class-amp-style-sanitizer.php index dfb341261b6..323740f1ec7 100644 --- a/includes/sanitizers/class-amp-style-sanitizer.php +++ b/includes/sanitizers/class-amp-style-sanitizer.php @@ -1642,10 +1642,8 @@ private function fetch_external_stylesheet( $url ) { * } */ private function get_parsed_stylesheet( $stylesheet, $options = [] ) { - $parsed = null; - $cache_key = null; $cached = true; - $cache_group = 'amp-parsed-stylesheet-v37'; // This should be bumped whenever the PHP-CSS-Parser is updated or parsed format is updated. + $cache_group = 'amp-parsed-stylesheet-v38'; // This should be bumped whenever the PHP-CSS-Parser is updated or parsed format is updated. $use_transients = $this->should_use_transient_caching(); // @todo If ValidationExemption::is_px_verified_for_node( $this->current_node ) then keep !important.