Jump to content
Sign in to follow this  
Damo

Health Status Block not updating v8.0.1

Recommended Posts

Home Dashboard shows 1 pending.

1284300562_ScreenShot2020-10-05at11_38_58am.png.a021ee8cce514d09a1b82bceab1ea809.png

But there is nothing in the queue.

1372485593_ScreenShot2020-10-05at11_38_48am.png.a98d20b1535304ae947e291b161f4061.png

I've cleared the template cache but it remains.

Share this post


Link to post
Share on other sites
9 hours ago, Damo said:

I've cleared the template cache but it remains.

I suspect the problem is that the Badges widget is caching the previous result value for 2 minutes - and there's no button on that widget to refresh the result immediately.

two quick options I can think of - either wait 2 minutes, refresh and see if the value corrects itself, or edit the widget code and disable caching. - that would mean that it would run the query on each dashboard visit, but it should be accurate (at least until you update WHMCS and it overwrites the widget code).

Share this post


Link to post
Share on other sites

Thanks for the replies. It did clear itself but was around 20 mins. Is there a chance of other caching than directly set at 2 mins that might've contributed?

Share this post


Link to post
Share on other sites

20 minutes?

It's  120 seconds in modules/widgets/Badges.php. It's not changed in v8. You can edit that as it's not encrypted.

The cached data is stored in tbltransientdata with an expiry date.

I've not tested this but I would guess changing these two variables would help for you.

protected $cache = true;
protected $cacheExpiry = 120;

Maybe just setting $cache to false.

Share this post


Link to post
Share on other sites
4 hours ago, Damo said:

Is there a chance of other caching than directly set at 2 mins that might've contributed?

server? CloudFlare ??

2 hours ago, aegisdesign said:

Maybe just setting $cache to false.

that's it.

Share this post


Link to post
Share on other sites

It may have been litespeed. I've disabled it for WHMCS. Oddly hasn't seen this behaviour until now. 
 

Thanks for the pointers. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated