• Resolved mzooz

    (@mzooz)


    After spending a month to get this to work i must contact you.
    WE have LITESPEED CACHE and neither me or my hosting company was able to get the views to update.
    I tried all ESI, data sampling , all combinations and stills the views do not update.
    Please check my site, i do not know what else to do.
    When i disable litespeed it starts to work again.
    Before the last two litespeed updates and one popular posts update, this was working.

    • This topic was modified 6 years ago by mzooz.

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

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Your site seems to be down at the moment or at least it doesn’t load for me right now @mzooz.

    Plugin Author Hector Cabrera

    (@hcabrera)

    So I checked again and I was able to access your website now.

    Two things:

    1. WPP is tracking visits normally at the moment:

    WPP REST API call returns HTTP status 201

    Since you’re using a caching plugin, make sure its caching rules aren’t being too aggressive: Is WordPress Popular Posts compatible with caching plugins?

    2. You have Data Sampling enabled. Please make sure that the Sample Rate is the right one for your current traffic levels.

    Thread Starter mzooz

    (@mzooz)

    Hy Hector, sorrry about that. please check now. Yesterday i had some debugging actually trying to sort this out. Yes, all seems fine because litespeed was disabled at the moment you were checking it. Try now!
    – ESI is unabled
    – DATA SAMPLE RATE -whatever i put it does not work.
    Nowbody knows whats the problem.
    P.s. Could you email me, rather than screenshot my site here?

    Plugin Author Hector Cabrera

    (@hcabrera)

    WPP’s JavaScript code isn’t being printed onto your site’s <head> section (at least it didn’t for the post I’m currently seeing). Without it WPP won’t be able to track page views.

    Review the rules/settings you’re using with the LiteSpeed Cache plugin @mzooz, especially the ones related to JS minification/bundling/etc.

    Thread Starter mzooz

    (@mzooz)

    Hector is it possible to get all javascripts you are using. Like a list, so i exclude them all from minification, bundling etc..? Like an exclude list, would that work?

    Thread Starter mzooz

    (@mzooz)

    And thank you for fast response

    Plugin Author Hector Cabrera

    (@hcabrera)

    I believe you don’t need to provide and exact filename with LiteSpeed Cache so try excluding anything that starts with wpp and see if that helps.

    Thread Starter mzooz

    (@mzooz)

    Dear Hector,

    Thanks, but i would rather exclude exact javascript names if you can provide?

    Thread Starter mzooz

    (@mzooz)

    Dear Hector,

    Do i exclude:

    wpp
    or
    _wpp_
    ?

    Plugin Author Hector Cabrera

    (@hcabrera)

    WPP’s JS filename can/will change over time as I introduce new features and/or fix stuff (eg. assets/wpp-5.0.0.min.js, which by the way will be renamed soon). You can add that path to your exclusions list if you want, however WPP will stop working as soon as I change the filename again (or I may even move the file to a different directory for some reason, who knows?), hence my recommendation to only pass a partial name to LiteSpeed.

    Feel free to pass the full path if you want to though but remember to update the filename when it changes or else you’ll be back here again asking for support and you’ll get the exact same response from me 😛

    Thread Starter mzooz

    (@mzooz)

    I understand. I did all you said. THE POPULAR lists counts all, but on separate posts i am still seeing same numbers, like they are frozen. It seems as the site is counting all but on posts these numbers do not display.
    Can you check now? This is first ever problem i spent a month and did not fix….
    thanks Hector

    Plugin Author Hector Cabrera

    (@hcabrera)

    (…) on separate posts i am still seeing same numbers, like they are frozen. It seems as the site is counting all but on posts these numbers do not display.

    You mean this?

    Views count indicator on single post

    If so, then that’s to be expected: LiteSpeed Cache is caching your posts/pages, including the views counter indicator as well.

    To have your posts display their current views count right away your theme needs to retrieve the views count dynamically via AJAX to keep LiteSpeed Cache from caching it.

    Thread Starter mzooz

    (@mzooz)

    Thanks for answer again. That much i know. I selected and enabled ajax. When flushing cache; these numbers do not change. Before they did and they did update instant, but at the latest few Litespeed updates and your plugin update something is not right. Numbers never update.
    Theme is okay, since others do not have problems with cache.
    So what could be the problem..

    Plugin Author Hector Cabrera

    (@hcabrera)

    No idea. You’ll need to trace and debug the code that displays the views count on your posts to figure out what’s going on. Can’t help with that as that’s theme territory and thus it’s outside the scope of support I provide here.

    Thread Starter mzooz

    (@mzooz)

    You helped enough. Thanks, but this works without litespeed so i cannot ask for support from Theme author. Anyways thanks.

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

The topic ‘Litespeed and Popular Posts’ is closed to new replies.