Skip to content

Commit

Permalink
Add state_cache (Drupal core 10.3)
Browse files Browse the repository at this point in the history
  • Loading branch information
back-2-95 committed Jun 25, 2024
1 parent c8dd6fd commit bd3bab1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Reader.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ public function __construct(array $vars)

$this->setTrustedHostPatterns();
$this->setDatabaseConnection();

// Version specific settings.
if (version_compare($this->getDrupalVersion(), '10.3.0', '>=')) {
$this->settings['state_cache'] = TRUE;
}
}

public static function get(array $vars): array
Expand Down

0 comments on commit bd3bab1

Please sign in to comment.