mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 15:07:49 +00:00
fix: increase cache
This commit is contained in:
parent
f0e5e6261a
commit
77bf4f1c96
1 changed files with 3 additions and 3 deletions
|
|
@ -21,7 +21,7 @@ new class extends Component {
|
||||||
private function loadNewest(): void
|
private function loadNewest(): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$this->recipes = Cache::remember('trmnl_recipes_newest', 300, function () {
|
$this->recipes = Cache::remember('trmnl_recipes_newest', 43200, function () {
|
||||||
$response = Http::get('https://usetrmnl.com/recipes.json', [
|
$response = Http::get('https://usetrmnl.com/recipes.json', [
|
||||||
'sort-by' => 'newest',
|
'sort-by' => 'newest',
|
||||||
]);
|
]);
|
||||||
|
|
@ -200,14 +200,14 @@ new class extends Component {
|
||||||
<div class="mt-4 flex items-center space-x-3">
|
<div class="mt-4 flex items-center space-x-3">
|
||||||
@if($recipe['id'])
|
@if($recipe['id'])
|
||||||
@if($installingPlugin === $recipe['id'])
|
@if($installingPlugin === $recipe['id'])
|
||||||
<flux:button
|
<flux:button
|
||||||
wire:click="installPlugin('{{ $recipe['id'] }}')"
|
wire:click="installPlugin('{{ $recipe['id'] }}')"
|
||||||
variant="primary"
|
variant="primary"
|
||||||
disabled>
|
disabled>
|
||||||
<flux:icon name="arrow-path" class="w-4 h-4 animate-spin" />
|
<flux:icon name="arrow-path" class="w-4 h-4 animate-spin" />
|
||||||
</flux:button>
|
</flux:button>
|
||||||
@else
|
@else
|
||||||
<flux:button
|
<flux:button
|
||||||
wire:click="installPlugin('{{ $recipe['id'] }}')"
|
wire:click="installPlugin('{{ $recipe['id'] }}')"
|
||||||
variant="primary">
|
variant="primary">
|
||||||
Install
|
Install
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue