Do no store anchor links
This commit is contained in:
parent
41893880c3
commit
b8d39081c6
|
@ -167,12 +167,14 @@ public function toArray(): array
|
|||
];
|
||||
}
|
||||
|
||||
if (!$this->isAnchor()) {
|
||||
if ($this->bundle !== null) {
|
||||
$this->bundle->metadata('links')->set($this->url, $data, false);
|
||||
$this->bundle->metadata('links')->save();
|
||||
}
|
||||
|
||||
Cache::put($cacheKey, $data, now()->addWeek());
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user