Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.41k stars 1.99k forks source link

SPT: Changing site language setting does not clear template cache #41827

Open jeryj opened 4 years ago

jeryj commented 4 years ago

Steps to reproduce

You will need to have WP_DEBUG set to false or not be present at all to reproduce.

  1. Add a new page to show the Starter Page Templates
  2. See the templates in your chosen site language
  3. Go to the Site Level Settings and change to Spanish (or if you were on Spanish, change to English). Save.
  4. Add another new page. Your templates will still be in the previously selected language.

What I expected

SPT should respect the site language settings and immediately show the templates in the site settings language.

What happened instead

SPT template cache does not get cleared when switching the site language, resulting in templates showing in the previously selected language.

Screenshot / Video

Change your site language

Screen Shot 2020-05-05 at 1 22 29 PM

When changing the site language setting to Spanish, it should look like this:

Screenshot 2020-05-05 at 15 37 48

Instead, it remains on the previous language:

Screen Shot 2020-05-05 at 1 34 55 PM

Context / Source

github-actions[bot] commented 3 years ago

This issue is stale because it has been 180 days with no activity. You can keep the issue open by adding a comment. If you do, please provide additional context and explain why you’d like it to remain open. You can also close the issue yourself — if you do, please add a brief explanation and apply one of relevant issue close labels.