• I’m using W3TC:free version, default settings + CDN.

    And I’m using Thrive Leads to display opt-in forms. They are only appearing sporadically due to the “closed state” getting cached.

    I’m wondering if you can point me in the direction of solving this issue.

    I recognize it may be complex, but I’m ready to either pay you guys ($200 flat fee?) or hire a freelance developer.

    Please advise.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You shouldnt have to pay to get this resolved. Your problem is much easier to solve than you think. If necessar, and this Thrive Leads plugin is available for free i will install it and tell you how to get it fixed.

    Anway, when you say the closed state is being cached can you elaborate? Meaning: When the popup form appears in the client-side browser and then clicks the close button are you saying this “closed state” is being reported back to your server (ajax?) which is then being cached? I would have figured this closed state would simply be set as a cookie in the client’s browser with an expiry period — when this period runs out the opt-in form reappears when the user goes back to the site. That’s how it should work. But then, maybe Thrive Lead’s plugin does something differently.

    Thanks for the info
    Kimberly

    Thread Starter pokerinabox

    (@pokerinabox)

    I really appreciate your optimism and willingness to help Kimberly.
    The TL plugin is not free, but I’ve setup a clean install of wordpress with the default theme and only added the 2 plugins: Thrive Leads and W3 TC.

    I’m working to replicate the issue and then can give you access and details.

    One thing that will help me. Is there a way to see a timestamp and/or unique ID for the currently cached version of a page? Perhaps in the source code or through the admin side somehow?

    Thanks.

    Hi @pokerinabox … yea if you turn off Minify, or, more specifically, you just need to turn off the HTML minify option (Minify > HTML & XML > HTML minify settings > Enable = unchecked) while still have page caching enabled then at the bottom of your cached pages (when not logged in) you will see a timestamp of when it was created. For example: http://imgur.com/5EWF9Uq

    Thread Starter pokerinabox

    (@pokerinabox)

    Ok. I’ve setup a simple test installation here:
    http://drunkpoker.tips/

    Every time you hit the page you get the green popup. Super annoying, even though I’ve set it to disappear for 7 days after user closes it. The problem is that it’s getting cached.

    This is most likely happening because there are server side read/writes to the client cookie. (It’s a powerful, sophisticated plug-in that stores lots of information on the server.)

    While the Thrive Leads plug-in does offer a “lazy load” feature, the problem with that is that the pop-ups and other features don’t load until the end of the page which makes them slow. It also breaks other functionality for me, like storing UTM variables.

    Suggestions?
    I can give you access to this server, if there’s a private way I can send you the login credentials.

    I was able to see the cached and non-cached version of your site to see how they operated differently. I understand why it occurs now (its related to a cookie called tlf_1 and the page that should be associated with it).

    Curious, how do you insert the TL on a page? I figure it must do so automatically. Do you know if there is a way to trigger it manually by inserting some special php code in one of your theme’s template files?

    I ask because it seems, based on how your existing TL setup works, that you need to use w3tc’s fragment caching feature on your page by wrapping that (hopefully) php TL call(s) so when the cached page is sent to the user and the browser sends back its info (via ajax) to your server then the cached page can make final adjustments to the cache before serving it back, solving the problem.

    But i’m guessing TL doesn’t give you that option πŸ™ I was briefly looking through their site for any API discussion. Couldn’t find anything.

    As such, it seems the only way to get this working then is unfortunately using the lazy loading option as you had mentioned πŸ™

    You mentioned the lazy load feature (the scripts) are loaded after the page fully loads. You could have them moved into the < head> section of your page. As for it breaking other functionality. you could use w3tc’s manual mode (when minifying) and adjust the position of the order for each loading script so functionality isnt broken. The hardest part with that is knowing the correct order. If you want to see the area (assuming youve switched to lazy loading), you switch the Minify to Manual (via General Settings) then under the Minify tab click the “help” button and it will analyze your page for scripts that are loaded. Hopefully the lazy load script are in there too. You can then drag and drop to get the correct ordering.

    Curious, when you did explore lazy load before was it breaking other things even when not using w3tc? Or was it breaking things only when using w3tc?

    I’d be happy to give you a hand if you do explore lazy loading. I am jumping around helping other people so there might be a delay.

    Regards
    Kimberly.

    PS – thanks a bunch for the test page. It helped a lot. And thanks for the access. That could be very helpful later.

    Thread Starter pokerinabox

    (@pokerinabox)

    Hmm. Actually even with the “lazy load” feature our opt-in form is still getting cached (and not appearing for new users). This is happening on our front page:

    http://pokerinabox.com

    Any advice on how to trouble-shoot this? I’m also working with the Thrive Leads developers but not getting very far.

    Thread Starter pokerinabox

    (@pokerinabox)

    Update: I’ve turned off the CDN, and now I seem to get better results. More consistently the big slide in form is appearing when I go to pokerinabox.com via incognito.

    Also no major differences in speed.

    Going to test for a few more days will just stop using CDN if that seems to be the issue.

    Another question, when I test the site in gtmetrix.com, the only thing I get a poor rating on is “defer parsing of javascript”. (Try it.) It lists ~20 files (all minified) that represent 1.1MiB of JS parsed during itial load. And recommends defering the parsing to reduce blocing of page rendering.

    Thoughts on this?

    Thread Starter pokerinabox

    (@pokerinabox)

    Next Update:
    CDN wasn’t the answer. I’m still loading up pokerinabox.com in incognito and periodically not getting the slide in form. πŸ™
    These caching issues are a b!tch.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Opt in forms getting cached (as closed)’ is closed to new replies.