You are here

protected function RecipientHandlerAll::cacheCount in Simplenews 8.2

Same name and namespace in other branches
  1. 3.x src/Plugin/simplenews/RecipientHandler/RecipientHandlerAll.php \Drupal\simplenews\Plugin\simplenews\RecipientHandler\RecipientHandlerAll::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.

Overrides RecipientHandlerBase::cacheCount

File

src/Plugin/simplenews/RecipientHandler/RecipientHandlerAll.php, line 38

Class

RecipientHandlerAll
This handler sends a newsletter issue to all its subscribers.

Namespace

Drupal\simplenews\Plugin\simplenews\RecipientHandler

Code

protected function cacheCount() {
  return TRUE;
}