Caches & Config


Caches #

Names and links are cached until a linked entry is saved or deleted. Clear them by hand under Utilities → Caches → Namecheck names and links, or with php craft clear-caches/namecheck.

Configuration #

Every setting can be set in config/namecheck.php:

PHP
<?php

return [
    'targetSections' => ['performers'],
    'sourceSections' => ['news'],
    'firstOnly' => true,
    'caseSensitive' => true,
    'linkAttributes' => ['class' => 'mention'],
    // Elements whose text is never linked.
    'skipTags' => ['a', 'button', 'code', 'figcaption', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'kbd', 'label', 'option', 'pre', 'script', 'select', 'style', 'textarea'],
];