【问题标题】:Persistent Flashdata with Redis in Laravel在 Laravel 中使用 Redis 持久化 Flashdata
【发布时间】:2014-11-06 11:42:00
【问题描述】:

我在 Laravel 4.2 stable 中使用 Redis 作为会话驱动程序。

从今天早上开始,在我收到composer update 之后,会话中的闪存数据就不会自毁。他们是执着的。但是,如果我从redis 切换到file 会话驱动程序,它们就会正常工作。 这些是更新的软件包:

composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)         
  - Removing symfony/finder (v2.5.3)
  - Installing symfony/finder (v2.5.4)
    Downloading: 100%         

  - Removing symfony/translation (v2.5.3)
  - Installing symfony/translation (v2.5.4)
    Downloading: 100%         

  - Removing symfony/security-core (v2.5.3)
  - Installing symfony/security-core (v2.5.4)
    Downloading: 100%         

  - Removing symfony/routing (v2.5.3)
  - Installing symfony/routing (v2.5.4)
    Downloading: 100%         

  - Removing symfony/process (v2.5.3)
  - Installing symfony/process (v2.5.4)
    Downloading: 100%         

  - Removing symfony/http-foundation (v2.5.3)
  - Installing symfony/http-foundation (v2.5.4)
    Downloading: 100%         

  - Removing symfony/event-dispatcher (v2.5.3)
  - Installing symfony/event-dispatcher (v2.5.4)
    Loading from cache

  - Removing symfony/debug (v2.5.3)
  - Installing symfony/debug (v2.5.4)
    Loading from cache

  - Removing symfony/http-kernel (v2.5.3)
  - Installing symfony/http-kernel (v2.5.4)
    Downloading: 100%         

  - Removing symfony/dom-crawler (v2.5.3)
  - Installing symfony/dom-crawler (v2.5.4)
    Downloading: 100%         

  - Removing symfony/css-selector (v2.5.3)
  - Installing symfony/css-selector (v2.5.4)
    Downloading: 100%         

  - Removing symfony/console (v2.5.3)
  - Installing symfony/console (v2.5.4)
    Downloading: 100%         

  - Removing symfony/browser-kit (v2.5.3)
  - Installing symfony/browser-kit (v2.5.4)
    Loading from cache

  - Removing nesbot/carbon (1.11.0)
  - Installing nesbot/carbon (1.12.0)
    Downloading: 100%         

  - Removing symfony/filesystem (v2.5.3)
  - Installing symfony/filesystem (v2.5.4)
    Downloading: 100%         

  - Removing barryvdh/laravel-debugbar (v1.6.8)
  - Installing barryvdh/laravel-debugbar (v1.7.5)
    Downloading: 100%         

  - Removing guzzlehttp/guzzle (4.2.1)
  - Installing guzzlehttp/guzzle (4.2.2)
    Downloading: 100%         

  - Removing symfony/class-loader (v2.5.3)
  - Installing symfony/class-loader (v2.5.4)
    Downloading: 100%         

  - Removing bkwld/croppa (dev-master 6882599)
  - Installing bkwld/croppa (dev-master f38d935)
    Downloading: 100%         

  - Removing way/generators (dev-master 5edee3a)
  - Installing way/generators (dev-master 27a8d2e)
    Downloading: 100%         

Writing lock file
Generating autoload files
Generating optimized class loader

在最后一次作曲家更新之前一切正常。

有没有其他人经历过这种情况?如果是这样,我该如何解决这个问题?

注意:将缓存和会话驱动程序更改为文件可以正常工作,但我需要 redis。

提前致谢,

【问题讨论】:

  • 我能问一下为什么这被否决了吗?

标签: session caching laravel laravel-4 redis


【解决方案1】:

仅供参考,几天后作曲家更新后已修复。这可能是一个 symfony 组件错误。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-09-05
    • 2022-04-29
    • 1970-01-01
    • 1970-01-01
    • 2017-04-06
    • 2020-06-14
    相关资源
    最近更新 更多