Skip to content

[BUG] symfony/cache-extra and timber 2, cache method unclear #2762

@Levdbas

Description

@Levdbas

Expected Behavior

Setting up the cache extention on v2 and cache mode to default (transient) will save cache to database.

Actual behavior

I have no clue where the cache is coming from and how to flush it. :D

Steps to reproduce behavior

  1. Setup Timber cache via https://timber.github.io/docs/v2/guides/performance/#cache-parts-of-the-twig-file-and-data
  2. Create cache in a template via
{% cache "what_is_love" %}
Baby don't hurt me
{% endcache %}
  1. see that cache is loaded on pageload
  2. change contents between the cache tags and refresh page, see that old content is still loaded.
  3. Check database for transients, none found.
  4. Run wp timber clear-cache, no luck as well
    ...

Notes

I tried debugging #2483 to see if it still persists on v2, but got stuck here. So the results are obviously cached somewhere. But I have no clue where...

What version of Timber are you using?

2.x-dev

What version of WordPress are you using?

6.2

What version of PHP are you using?

8.0.27

How did you install Timber?

Installed or updated Timber through Composer

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions