Skip to content
This repository has been archived by the owner on Dec 24, 2019. It is now read-only.

Avoid adding duplicates #26

Open
arnisjuraga opened this issue Aug 14, 2019 · 0 comments
Open

Avoid adding duplicates #26

arnisjuraga opened this issue Aug 14, 2019 · 0 comments

Comments

@arnisjuraga
Copy link

Right now, addItem() will add items even they are duplicates.

$sitemap->addItem("/contacts", $priority, 'daily', $item['date_modified']);
...
$sitemap->addItem("/contacts", $priority, 'daily', $item['date_modified']);

works just fine and creates the same linke twice in sitemap.

I understand, that checking for duplicates degrades performance. But doing this wisely it can work. And adding as configuration would be great!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant