Title: Affiliate links cache
Last modified: August 31, 2021

---

# Affiliate links cache

 *  Resolved [Dan14](https://wordpress.org/support/users/dan14/)
 * (@dan14)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/affiliate-links-cache/)
 * lets say my affiliate links added to urls /?referrer=example
 * These urls initially are not cached but if visited they are cached. The difference
   is the loading time. When not cached, ttfb for html is 1.9 seconds. When cached,
   its 900ms on the first visit.
 * I have to purge the cache occasionally. Is there any way to have affiliate links
   cached quickly? If myhompage.com/?referrer=example is cached, mydompage.com/post/?
   referrer=example is not cached unless it’s visited at least once.
 * I hope I was clear. The affiliate software handles caching very well.
    -  This topic was modified 4 years, 8 months ago by [Dan14](https://wordpress.org/support/users/dan14/).

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/affiliate-links-cache/#post-14823415)
 * Hello [@dan14](https://wordpress.org/support/users/dan14/)
 * Thank you for your question.
    By default, the URLs with query strings are not
   cached if the caching method is Disk: Enhanced. So you should either switch to
   Disk: Basic or use memory-based caching and enable the option Cache URIs with
   query string variables in Performance>Page Cache. It’s not advisable to cache
   any affiliate links since those links should be unique per visitor. I hope this
   answers your qeustion. Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Affiliate links cache’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/affiliate-links-cache/#post-14823415)
 * Status: resolved