diff --git a/src/Env/Helpers.php b/src/Env/Helpers.php index 3892f12..37997d7 100644 --- a/src/Env/Helpers.php +++ b/src/Env/Helpers.php @@ -131,7 +131,7 @@ final public static function shouldCacheEnv(): bool if (!did_action('plugins_loaded')) { return !$skip; } - static::$shouldCache = !apply_filters('wpstarter.skip-cache-env', $skip); + static::$shouldCache = !apply_filters('wpstarter.skip-cache-env', $skip, $env); } return static::$shouldCache;