Skip to content

Commit

Permalink
Invalidate the page pattern cache when the site lang changes
Browse files Browse the repository at this point in the history
The page pattern cache was keyed on the account language. However the
account language isn't used when making the request to get the page
pattern data. Switching to the site's language (i.e. the same locale
slug used when fetching pattern data) means the cache will be
invalidated correctly.
  • Loading branch information
p-jackson committed Mar 16, 2021
1 parent 9566f7e commit 9ec100d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private function __construct() {
'starter_page_templates',
A8C_ETK_PLUGIN_VERSION,
get_option( 'site_vertical', 'default' ),
get_locale(),
$this->get_verticals_locale(),
)
);

Expand Down

0 comments on commit 9ec100d

Please sign in to comment.