Use hash given url to avoid duplicate

Using hashed url we can ensure an index on them to ensure it's fast.
This commit is contained in:
Jeremy Benoist
2019-05-29 14:18:04 +02:00
parent b7fa51ae7d
commit f3bfb875e9
6 changed files with 134 additions and 132 deletions

View File

@ -76,9 +76,10 @@ class ContentProxy
// Not sure what are the other possible cases where this property is empty
if (empty($entry->getUrl()) && !empty($url)) {
$entry->setUrl($url);
$entry->setGivenUrl($url);
}
$entry->setGivenUrl($url);
$this->stockEntry($entry, $content);
}