You are here

protected function RecipientHandlerBase::cacheCount in Simplenews 8.2

Same name and namespace in other branches
  1. 3.x src/Plugin/simplenews/RecipientHandler/RecipientHandlerBase.php \Drupal\simplenews\Plugin\simplenews\RecipientHandler\RecipientHandlerBase::cacheCount()

Checks if the recipient count can be cached.

Caching is allowed if the count depends only on the newsletter IDs, and does not vary with a specific issue or handler settings.

Return value

bool TRUE if the count can be cached.

1 call to RecipientHandlerBase::cacheCount()
RecipientHandlerBase::count in src/Plugin/simplenews/RecipientHandler/RecipientHandlerBase.php
2 methods override RecipientHandlerBase::cacheCount()
RecipientHandlerAll::cacheCount in src/Plugin/simplenews/RecipientHandler/RecipientHandlerAll.php
Checks if the recipient count can be cached.
RecipientHandlerNewUsers::cacheCount in modules/simplenews_demo/src/Plugin/simplenews/RecipientHandler/RecipientHandlerNewUsers.php
Checks if the recipient count can be cached.

File

src/Plugin/simplenews/RecipientHandler/RecipientHandlerBase.php, line 96

Class

RecipientHandlerBase
Base class for all Recipient Handler classes.

Namespace

Drupal\simplenews\Plugin\simplenews\RecipientHandler

Code

protected function cacheCount() {
  return FALSE;
}