Jump to content

Health Status Block not updating v8.0.1


Damo

Recommended Posts

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).

Link to comment
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.

Link to comment
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.

  • 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