• Resolved kpbryce132

    (@kpbryce132)


    The MonsterInsights plugin display on Admin dashboard fails to update after a while. I think this is because of cache issue with Cloudflare SC plugin. I declared exception within the CF SC plugin for /admin/* but this also stops some of the AJAX executions and slows down the page load speed on these static pages. Can I make a /admin/index.php exception in the SC plugin and purge cache? Will this solve this problem with excepting the entire /admin/ directory? Many thanks!

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

Viewing 15 replies - 1 through 15 (of 24 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi,
    Is there any error in the browser dev console?

    Thread Starter kpbryce132

    (@kpbryce132)

    The only one I see tagged by MonsterInsights plugin is the following:

    Ruleset ignored due to bad selector. monsterinsight-plugin:2:1204

    BTW if I totally purge the CF cache the problem resolves. But any activity, or edits or changes with the Admin dashboard will likely begin the endless “reloading” icon within the MonsterInsights plugin on the dashboard. Note: I am using the MI “free” plugin version which is current. It is feeding website data from GA4 connection.

    Plugin Contributor iSaumya

    (@isaumya)

    Hard to see what’s going on without seeing it in action.

    Thread Starter kpbryce132

    (@kpbryce132)

    Here are two screenshots which show before and after with this issue –

    https://www.designwerks.net/atest/before.png

    https://www.designwerks.net/atest/after.png

    Plugin Contributor iSaumya

    (@isaumya)

    Hi,
    can you share a screenshot of the browser console?

    Thread Starter kpbryce132

    (@kpbryce132)

    Yes, specifically what are you looking for? If I use an spec within CF to exempt the Admin dashboard then all is well. I do not wish to exempt ALL of the Admin directory and sub-directories however.

    Plugin Contributor iSaumya

    (@isaumya)

    In the Chrome dev tools, there is a browser console section, I need to see if there is any error being thrown there.

    Thread Starter kpbryce132

    (@kpbryce132)

    Per you request here is console with 2 errors –

    https://www.designwerks.net/atest/console_error.jpg

    Thread Starter kpbryce132

    (@kpbryce132)

    BTW – I see on the console output there is an error with the timeout of the nonce set for a call to AJAX “NONCES EXPIRED”: TRUE

    Plugin Contributor iSaumya

    (@isaumya)

    Huh! It’s hard to say what’s the reason behind this problem without actually replicating the problem live.

    Thread Starter kpbryce132

    (@kpbryce132)

    I know through experimenting that purging the Cloudflare cache cures the issue – so when MonsterINsights gets into a load loop on the ADMIN dashboard this is an effective correction to the problem. Maybe this is an issue with a nonce this plugin sets and the caching by Cloudflare interferes with the proper loading? I can’t permit 3rd parties to access our website admin because of client data contained here. So, going forward what are other solutions you think would help other than the one above I mentioned?

    Thread Starter kpbryce132

    (@kpbryce132)

    Hi again,

    I suspect the trigger for this issue might be the computer sleep schedule. This mode may ignore the set nonce and when it wakes and tries to continue the nonce is out of sync. I have seen this before with other apps. Of course purging the Cloudflare cache forces the app and computer to share a newly created nonce. So changing the computer setting to “not sleep” may stop this issue. I will test and report back my findings ASAP.

    Plugin Contributor iSaumya

    (@isaumya)

    Well, for logged-in users cache is bypassed. So, not sure how cache can play a role here, as cache is bypassed for all logged-in users.

    Thread Starter kpbryce132

    (@kpbryce132)

    In Cloudflare’s control dashboard under “Cache” settings you can specify “Cache everything” and use website.com/* specification. Then use exclusions about that setting. This may be trial and error testing before the cause can be determined. I will continue testing – not sure I will find the solution – or the immediate cause of the issue.

    Plugin Contributor iSaumya

    (@isaumya)

    The plugin uses the Cache-Control header to tell Cloudflare what to cache and what not to cache. Can you share the response header of your logged-in page so that I can see what’s going on?

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘MonsterInsight plugin’ is closed to new replies.