diff --git a/app/Console/Commands/MempoolSpace/CacheRecommendedFees.php b/app/Console/Commands/MempoolSpace/CacheRecommendedFees.php index cb174de3..02daa038 100644 --- a/app/Console/Commands/MempoolSpace/CacheRecommendedFees.php +++ b/app/Console/Commands/MempoolSpace/CacheRecommendedFees.php @@ -46,5 +46,6 @@ class CacheRecommendedFees extends Command ]); cache()->put('mempool-weather', $result['choices'][0]['text'], now()->addMinutes(62)); + cache()->put('mempool-weather-changed', now()->toDateTimeString(), now()->addMinutes(62)); } } diff --git a/app/Http/Livewire/Banner/MempoolWeather.php b/app/Http/Livewire/Banner/MempoolWeather.php index 496956ca..fd8321ef 100644 --- a/app/Http/Livewire/Banner/MempoolWeather.php +++ b/app/Http/Livewire/Banner/MempoolWeather.php @@ -16,6 +16,7 @@ class MempoolWeather extends Component public $hourFee; public $economyFee; public $minimumFee; + public $changed; public function mount() { @@ -32,6 +33,7 @@ class MempoolWeather extends Component $this->hourFee = $result['hourFee']; $this->economyFee = $result['economyFee']; $this->minimumFee = $result['minimumFee']; + $this->changed = cache()->get('mempool-weather-changed'); } public function render() diff --git a/resources/views/livewire/banner/mempool-weather.blade.php b/resources/views/livewire/banner/mempool-weather.blade.php index d3f94680..c437804a 100644 --- a/resources/views/livewire/banner/mempool-weather.blade.php +++ b/resources/views/livewire/banner/mempool-weather.blade.php @@ -12,7 +12,7 @@