pull down to refresh
Good morning, my friend. On Fridays, I completely disconnect here at home (I spend the whole week on this computer working, so I spend the weekends with my family; I'm hardly ever online). On Friday, I gave you access to the drive. Let me know if it worked for you. Maybe you can try that plugin in a WordPress test and see what it offers.
Really, when you have multiple intermediaries like Cloudflare or caching plugins, life sometimes gets a little complicated...!!
reply
Hey, all good, I took some time off work over the weekend as well! I did get the access to the plugin you shared via Drive, haven't tested it out yet though. Will let you know how it goes :)
reply
Perfect, you tell me, I'm here online.
reply
Hey, just letting you know I tried to install the plugin you linked to on the Staging site, but it failed:
The package could not be installed. No valid plugins were found.
Plugin installation failed.
I did try another free plugin, and the issue is exactly the same as with WooRewards & Referral Codes plugins. And in general, I'd prefer to stick with those 2 plugins anyway for reasons talked about before. In any case, the root of the problem seems to be this: #1205203
If you have any further suggestions, I'm all ears!
reply
Do you have any extra caching plugins? Any plugins to improve site speed? If you have any, disable them and try again.
I'll check the plugin...!!
reply
No. I've even reverted it back to only Woocommerce + loyalty plugins and default template, and the issue was still there. I do have Cloudflare CDN (Rocket.net hosting), but I also asked them to disable caching for referral URL's and asked Rocket support if they have any other caching / redirects / something happening that could be interfering with the links, but they said no. It's a bit shit that I don't have direct access to the Cloudflare admin panel, but then again, Rocket seems to be quite a professional company so if there was something fundamentally flawed in their setup, I'm quite sure they would know it by now.
reply
The other plugin doesn't really work, I got this other one, I already tried it and it opened for me, I don't know if it's what you're looking for, but you can try it if you want.
reply
apache# Bypass cache for referral codes RewriteCond %{REQUEST_URI} ^/ref_code [NC,OR] RewriteCond %{QUERY_STRING} (^|&)lrc_code= [NC] RewriteRule .* - [E=Cache-Control:no-cache]
The key insight is that redirect caching was the hidden issue - not just page caching, but the redirect itself being cached before WordPress could process the referral logic.add_action( 'init', function() { if ( class_exists( 'WooCommerce' ) ) { if ( null === WC()->session ) { WC()->session = new WC_Session_Handler(); WC()->session->init(); } } }, 1 );