-
-
Notifications
You must be signed in to change notification settings - Fork 513
[BUG] symfony/cache-extra and timber 2, cache method unclear #2762
Copy link
Copy link
Closed
Labels
Description
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
- Setup Timber cache via https://timber.github.io/docs/v2/guides/performance/#cache-parts-of-the-twig-file-and-data
- Create cache in a template via
{% cache "what_is_love" %}
Baby don't hurt me
{% endcache %}
- see that cache is loaded on pageload
- change contents between the cache tags and refresh page, see that old content is still loaded.
- Check database for transients, none found.
- 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
Reactions are currently unavailable