refactor($cacheFactory): cache inefficient when no capacity

skip maintaining the linked list when cache capacity not specified

closes #6193