Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. KernelInterface.php

function KernelInterface::getCacheDir

Gets the cache directory.

Since Symfony 5.2, the cache directory should be used for caches that are written at runtime. For caches and artifacts that can be warmed at compile-time and deployed as read-only, use the new "build directory" returned by the {

See also

getBuildDir()} method.

1 method overrides KernelInterface::getCacheDir()
Kernel::getCacheDir in vendor/symfony/http-kernel/Kernel.php
Gets the cache directory.

File

vendor/symfony/http-kernel/KernelInterface.php, line 120

Class

KernelInterface
The Kernel is the heart of the Symfony system.

Namespace

Symfony\Component\HttpKernel

Code

public function getCacheDir() : string;
RSS feed
Powered by Drupal