From 589435b667626a43c9f79df45621ed23f0b919a8 Mon Sep 17 00:00:00 2001 From: Zankaria Date: Sun, 7 Apr 2024 21:10:39 +0200 Subject: [PATCH] context.php: use shared cache driver --- inc/context.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inc/context.php b/inc/context.php index c3ebef04..e747a68d 100644 --- a/inc/context.php +++ b/inc/context.php @@ -83,6 +83,10 @@ function build_context(array $config): Context { $config['captcha']['native']['provider_check'], $config['captcha']['native']['extra'] ); + }, + CacheDriver::class => function($c) { + // Use the global for backwards compatibility. + return \cache::getCache(); } ]); }