Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clearing template cache on save #33

Open
OwenMelbz opened this issue May 5, 2020 · 0 comments
Open

Clearing template cache on save #33

OwenMelbz opened this issue May 5, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@OwenMelbz
Copy link

Description

When you use template caching, then amend a static translation, the template cache is not cleared, so you cannot see your changes.

You must then manually go into the caches and clear them.

Steps to reproduce

  1. Cache a template e.g.
{% cache %}
    {{ 'Website copyright notice 2020' | t }}
{% endcache %}
  1. Visit the page, which will cache it
  2. Change the translation via the CMS
  3. Refresh the page
  4. Old text is still displayed
  5. Clear template caches
  6. New text is displayed

Additional info

  • Craft version: 3.4.16
  • PHP version: 7.4.5
  • Database driver & version: mysql Ver 14.14 Distrib 5.7.29
  • Plugin version: 1.2.2
@andrelopez andrelopez self-assigned this Nov 16, 2020
@andrelopez andrelopez added the enhancement New feature or request label Nov 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants