You are here

protected function CacheFragmentController::isFastDeleteEnabled in RESTful 7.2

Helper function that checks if this controller uses a fast delete.

Return value

bool TRUE if fast delete is enabled. FALSE otherwise.

2 calls to CacheFragmentController::isFastDeleteEnabled()
CacheFragmentController::delete in src/RenderCache/Entity/CacheFragmentController.php
CacheFragmentController::wipe in src/RenderCache/Entity/CacheFragmentController.php
Removes all the cache fragments.

File

src/RenderCache/Entity/CacheFragmentController.php, line 194
Contains \Drupal\restful\RenderCache\Entity\CacheFragmentController.

Class

CacheFragmentController
Class CacheFragmentController.

Namespace

Drupal\restful\RenderCache\Entity

Code

protected function isFastDeleteEnabled() {
  return (bool) variable_get('restful_fast_cache_clear', TRUE);
}