From 4fce9e274819a5299e501a488a847d50cd22f111 Mon Sep 17 00:00:00 2001 From: Jonathan Hedstrom Date: Tue, 27 Oct 2015 10:02:23 -0700 Subject: [PATCH] Merge pull request #66 from jhedstrom/dawehner-master Implement clear static caches Signed-off-by: Jonathan Hedstrom --- src/Drupal/Driver/Cores/AbstractCore.php | 6 ++++++ src/Drupal/Driver/DriverInterface.php | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/src/Drupal/Driver/Cores/AbstractCore.php b/src/Drupal/Driver/Cores/AbstractCore.php index ce3ddd19..5c1ce886 100644 --- a/src/Drupal/Driver/Cores/AbstractCore.php +++ b/src/Drupal/Driver/Cores/AbstractCore.php @@ -87,4 +87,10 @@ protected function expandEntityFields($entity_type, \stdClass $entity) { } } + /** + * {@inheritdoc} + */ + public function clearStaticCaches() { + } + } diff --git a/src/Drupal/Driver/DriverInterface.php b/src/Drupal/Driver/DriverInterface.php index 761c8ae9..f829cd5e 100644 --- a/src/Drupal/Driver/DriverInterface.php +++ b/src/Drupal/Driver/DriverInterface.php @@ -75,6 +75,11 @@ public function fetchWatchdog($count = 10, $type = NULL, $severity = NULL); */ public function clearCache($type = NULL); + /** + * Clears static Drupal caches. + */ + public function clearStaticCaches(); + /** * Creates a node. *