timthedevguy / BuySYS

*NO LONGER MAINTAINED* Buyback application for EveOnline, can be used by Corporations/Alliances or private entities. Written in PHP 7.4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Enhancement] Check for valid market site

drkthunder02 opened this issue · comments

Can there be a function to check for the market site to be up before dumping the cache, and if the market site is down then return an error to cli and on-screen stating the cache shouldn't be dumped since the market site is not online? Stale data is better than troubleshooting, dumping the cache, and trying to update the cache only to find out the market site was not reachable.

Will do!!! I'll get started on this immediately.

Question though, was the site down or reporting 0's? Fuzz unfortunately has the issue where it will report 0's, maybe 1 or 2 times in a six month period.

In normal operation the system checks Fuzzwsorks for data, if fuzzworks is reporting 0's then the cache will be filled with 0's, nothing ever DUMPs the cache, the only way a cache gets cleared is if you clear it. If you experienced all 0's it's a matter of Fuzz reporting 0's, BuSYS has no way of knowing if the price is actually 0 or not so I can't alert you the admin that something is amiss, Fuzz is reporting valid json it just happens to be 0's.