The plugin always counts hits that come through WordPress. However, if a request is made that doesn’t come through WordPress then it won’t be counted. This request could go through a cache, for example.
How would I make sure that a redirect is not being cached?
Is there a flag that I could include in the link like a ?no-cache=1 etc?
-
This reply was modified 3 months, 2 weeks ago by
Brian - TGL.
Caching is something that happens outside of Redirection, so I can’t really provide an answer to that. You will need to look at your site and whatever caching is being provided and use the tools provided by those systems.
Makes sense, I added a cache bypass rule in Cloudflare and a cache bypass rule at the server level with the host. If I open an incog window and paste the redirect link it get’s counted, but pasting the link again in the same open incog window doesn’t count a new hit . . . is that expected behaviour?
Again this is something that happens outside of Redirection, and it’s impossible for me to say. Maybe the browser is caching it.
I understand that caching is external, I am just trying to be sure of how Redirection is designed to operate . . . So if one of our subscribers clicks the Redirection link 10 times in the email within 30 seconds, Redirection SHOULD register 10 hits (not a visitors vs page views scenario)?
I’m not trying to be difficult, but just trying to be accurate. I can only tell you what Redirection will do and how it is designed to operate, which is record a hit each time a request comes through to WordPress – this it will always do. What happens before that is something I can’t tell you, and I can’t really answer your question. It depends very much on your set up and situation. This applies to any request, not just Redirection.
If you disable all caches, and set the URLs to return a no cache header then you might be able to get a one-to-one request/hit.