My 'global_duplicate_uri_check' system setting is set to "No".
The following files use the 'duplicate_uri_found' lexicon key:
./core/model/modx/processors/resource/update.class.php
./core/model/modx/processors/resource/publish.class.php
./core/model/modx/processors/resource/create.class.php
Of interest here is also the isDuplicateAlias() function inside of core/model/modx/modresource.class.php:
public function isDuplicateAlias($aliasPath = '', $contextKey = '') {
if (empty($aliasPath)) $aliasPath = $this->getAliasPath($this->get('alias'));
$criteria = $this->xpdo->newQuery('modResource');
$where = array(
'id:!=' => $this->get('id'),
'uri' => $aliasPath,
'deleted' => false,
'published' => true
);
if (!empty($contextKey)) {
$where['context_key'] = $contextKey;
}
$criteria->select('id');
$criteria->where($where);
$criteria->prepare();
$duplicate = $this->xpdo->getValue($criteria->stmt);
return $duplicate > 0 ? (integer) $duplicate : false;
}
In checking a couple of my problem entries, it's clear that in each case only 1 of the duplicates is published... so the isDuplicateAlias() always gives them a clean pass, whereas the cache manager doesn't appear to distinguish between the published and not-published status.