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) {
|
if ($this->bundle !== null) {
|
||||||
$this->bundle->metadata('links')->set($this->url, $data, false);
|
$this->bundle->metadata('links')->set($this->url, $data, false);
|
||||||
$this->bundle->metadata('links')->save();
|
$this->bundle->metadata('links')->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
Cache::put($cacheKey, $data, now()->addWeek());
|
Cache::put($cacheKey, $data, now()->addWeek());
|
||||||
|
}
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user