You are here

protected function StaticCache::getCacheId in Tome 8

Gets the Tome cache ID for this request.

Parameters

string $base_url: The base scheme/host for this request.

string $original_path: The original, placeholdered path.

Return value

string The cache ID for this request.

1 call to StaticCache::getCacheId()
StaticCache::setCache in modules/tome_static/src/StaticCache.php
Adds to the Tome cache.

File

modules/tome_static/src/StaticCache.php, line 145

Class

StaticCache
Determines if pages are statically cached.

Namespace

Drupal\tome_static

Code

protected function getCacheId($base_url, $original_path) {
  $cid_parts = [
    $base_url,
    rtrim($original_path, '/'),
  ];
  return strtolower(implode(':', $cid_parts));
}