| | |
| | | private function __construct() |
| | | { |
| | | $this->cache = CacheManager::for('breadcrumbs', MONTH_IN_SECONDS)->connectTo('all'); |
| | | // $this->cache->clear(); |
| | | if (JVB_TESTING) { |
| | | $this->cache->clear(); |
| | | } |
| | | } |
| | | |
| | | public static function getInstance(): self |
| | |
| | | |
| | | if (Features::forSite()->has('is_directory') && $name === 'directory') { |
| | | $crumbs[] = [ |
| | | 'name' => 'Directory', |
| | | 'name' => JVB()->directories()->referAs(true), |
| | | 'url' => get_post_type_archive_link($type) |
| | | ]; |
| | | } elseif ((is_post_type_archive() || !Features::forContent($name)->has('show_directory')) && array_key_exists($name, JVB_CONTENT)) { |