简体   繁体   English

Botman 对话缓存时间不起作用

[英]Botman conversation cache time not working

BotMan Version: 2.6 BotMan 版本:2.6

PHP Version: 7.3.23 PHP 版本:7.3.23

Laravel Version : 7.16.1 Laravel 版本:7.16.1

Cache Driver: LaravelCache缓存驱动:LaravelCache

i'm using botman for telegram bot.我正在将botman用于电报机器人。 everything is ok with botman just the conversation cache time is not working. botman 一切正常,只是对话缓存时间不起作用。 this is my botman Configuration code :这是我的 botman 配置代码:

use BotMan\BotMan\Cache\LaravelCache;
use BotMan\BotMan\Drivers\DriverManager;
use BotMan\BotMan\BotManFactory;

$config = [
    // Your driver-specific configuration
    "botman" => [
        'conversation_cache_time' => 720 ,
        'user_cache_time' => 720,
    ],
    "telegram" => [
        "token" => env('TELEGRAM_TOKEN'),
    ]
];
// Load the driver(s) you want to use
DriverManager::loadDriver(\BotMan\Drivers\Telegram\TelegramDriver::class);

// Create an instance
$botman = BotManFactory::create($config, new LaravelCache());

//  and other hears , fallback and conversations functions ...

every thing about the bot and conversations is fine , but the problem is about the conversation cash time base on the conversation document we have to use drive cache to use conversations and the driver i'm using is laravelCache but i set conversation_cache_time to 720 minute but it just takes the default 30 minute.关于机器人和对话的一切都很好,但问题是基于对话文档的对话现金时间我们必须使用驱动器缓存来使用对话,我使用的驱动程序是 laravelCache 但我将conversation_cache_time缓存时间设置为 720 分钟,但是它只需要默认的 30 分钟。

what should i do?我该怎么办?

thanks in advance.提前致谢。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM