I have a pretty high traffic wordpress site, doing 5-6M pageviews a day on an nginx / fascgi / php-fpm setup. Recently we started using utm parameters in our landing URLs and it caused the server to work a lot harder because of more cache misses.
I am looking into solutions including but not limited to:
- Figuring out how to “ignore” query parameters in fastcgi. So /some-wordpress-url/?utm_source=blah&utm_term=1234 would be directed to /some-wordpress-url/ for rendering (and thus cached) while preserving the url parameters in the actual URL so Google Analytics does the right thing.
- Changing the utm parameters to an anchor vs query parameters. So the above example would be /some-wordpress-url/#utm_source=blah&utm_term=1234
- Increasing cache time (doing this anyways)
Any other suggestions or inputs on how to achieve the above (especially the first)?