1
0

Do no store anchor links

This commit is contained in:
Richard Dern 2024-04-24 12:08:27 +02:00
parent 41893880c3
commit b8d39081c6

View File

@ -167,12 +167,14 @@ public function toArray(): array
]; ];
} }
if ($this->bundle !== null) { if (!$this->isAnchor()) {
$this->bundle->metadata('links')->set($this->url, $data, false); if ($this->bundle !== null) {
$this->bundle->metadata('links')->save(); $this->bundle->metadata('links')->set($this->url, $data, false);
} $this->bundle->metadata('links')->save();
}
Cache::put($cacheKey, $data, now()->addWeek()); Cache::put($cacheKey, $data, now()->addWeek());
}
return $data; return $data;
} }