• Resolved aid45

    (@aid45)


    Hi,

    We are trying to use AffiliateWP but Litespeed cacahe seems to stop tracking affiliate referrals.

    AffiliateWP says it does work with Litespeed.
    https://affiliatewp.com/docs/does-affiliatewp-work-with-caching/#:~:text=support%20here.-,LiteSpeed%20Cache,-To%20exclude%20cookies

    We have added the following URL excludes :
    /affiliate-area/
    /affiliate-login/
    /affiliate-terms-and-conditions/
    wp-.*\.php
    index\.php
    /become-an-affiliate*
    /affiliate-dashboard*
    /affiliate-area*
    /become-an-affiliate/
    /affiliate-dashboard/
    /lets-keep-in-touch/
    /login/
    /my-account/
    /registration/`

    And the following cookie excludes:
    affwp_ref
    affwp_ref_visit_id
    affwp_campaign
    wptouch_switch_toggle
    wp-affwp_ref_visit_id
    wp-affwp_ref
    wp-affwp_campaign`

    But the affiliate tracking only works after purging all or when cache is turned off.

    Any ideas on what might be stopping affiliatewp from working even with the items excluded from caching?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 8 replies - 16 through 23 (of 23 total)
  • Plugin Support qtwrk

    (@qtwrk)

    what’s the response time with cache plugin disabled ?

    Thread Starter aid45

    (@aid45)

    https://myboatcard.com/card/6/

    LS plugin enabled – no cache – server response time : 4.7 seconds

    LS plugin disabled – server response time : 4.75 seconds

    Plugin Support qtwrk

    (@qtwrk)

    yeah , that’s pretty much how much take it takes your site needs to generate the page , cache plugin can only help AFTER page is generated and cache is saved, but not BEFORE that.

    Thread Starter aid45

    (@aid45)

    ok thanks .. how do I force cache only the homepage for all users (logged in or not)

    do i just add “/*” to “Force Cache URIs”

    /*

    Plugin Support qtwrk

    (@qtwrk)

    please try

    ^/$

    Thread Starter aid45

    (@aid45)

    great thanks and for example force cache https://myboatcard.com/contact/ page would be :

    ^/contact/$

    or just

    /contact/$

    Plugin Support qtwrk

    (@qtwrk)

    both of them works
    first one will match exactly /contact/

    second will match anything ends /contact/ , like /contact/ or /something/contact/ or something-else/contact/

    Thread Starter aid45

    (@aid45)

    Hi .. sorry to follow up on the previous discussion.

    Does quic not read the .htaccess file? :
    https://www.quic.cloud/docs/cdn/multiple-apps-at-the-same-domain/

    If quic does not read the htaccess file – how can we tell litespeed / server / cdn to not cache when user is referred by a specific webpage?


    We had the following code in htaccess file but it is not read by quic?

    Thanks

    <IfModule LiteSpeed>
        RewriteCond %{HTTP_REFERER} testwebsite\.ca [NC,OR]
        RewriteCond %{HTTP_REFERER} testwebsite2\.com
        RewriteRule .* - [E=Cache-Control:no-cache,L]
    </IfModule>
    
Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘Cookies not being excluded’ is closed to new replies.