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

How set timer cache ignore all get params from URL #1592

Closed
jakubkaderavek opened this issue Nov 2, 2017 · 1 comment
Closed

How set timer cache ignore all get params from URL #1592

jakubkaderavek opened this issue Nov 2, 2017 · 1 comment

Comments

@jakubkaderavek
Copy link

Hi,

I use Timber on middle size website. There are many URL generate with get params - utm, google adwords, atd.
Is there a way, how exclude all pages from creating new timber cache (with transient) and serve cache from page without this param(s).

My code is:
Timber::render( array( 'template-home.twig' ), $context, 600 );

Eg.
for URL example.com?utm_source=example.com serve Timber cache from this page: example.com

It would be very nice if I can set for which params create custom cache, but its not important for me.

Thanks for help

@nlemoine
Copy link
Member

nlemoine commented Mar 8, 2023

Page cache should preferably handled by a cache plugin.

@nlemoine nlemoine closed this as completed Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants