Plancke / hypixel-php

MIT License
115 stars 36 forks source link

Bugfix: Guild cache is not respected when requesting a guild via UUID or name #49

Closed MaxKorlaar closed 2 years ago

MaxKorlaar commented 4 years ago

The method CacheUtil::isExpired compares timestamps in order to validate if a timestamp is older than allowed, defined by a given cache time. Both the timestamp and cache time should be in milliseconds, but were given in seconds, therefore always yielding true as a result, breaking the caching.