Damo Posted October 5, 2020 Share Posted October 5, 2020 Home Dashboard shows 1 pending. But there is nothing in the queue. I've cleared the template cache but it remains. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 5, 2020 Share Posted October 5, 2020 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). 0 Quote Link to comment Share on other sites More sharing options...
aegisdesign Posted October 5, 2020 Share Posted October 5, 2020 It's always done that. It does it in v7. Clearing the module queue doesn't invalidate the cached badge on the dashboard. 0 Quote Link to comment Share on other sites More sharing options...
Damo Posted October 6, 2020 Author Share Posted October 6, 2020 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? 0 Quote Link to comment Share on other sites More sharing options...
aegisdesign Posted October 6, 2020 Share Posted October 6, 2020 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. 1 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 6, 2020 Share Posted October 6, 2020 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. 1 Quote Link to comment Share on other sites More sharing options...
Damo Posted October 8, 2020 Author Share Posted October 8, 2020 It may have been litespeed. I've disabled it for WHMCS. Oddly hasn't seen this behaviour until now. Thanks for the pointers. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.