refactor($cacheFactory): cache inefficient when no capacity

**Browser:** Chrome
**Component:** misc core
**Regression:** yes

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