Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【システム】CacheEngineをRedisやMemcachedなどFile以外に変更するとBcCacheBehavior::delCacheの処理でキャッシュが消えない #1188

Open
kaburk opened this issue May 7, 2019 · 1 comment
Labels
Bug バグ Ver4 バージョン4

Comments

@kaburk
Copy link
Collaborator

kaburk commented May 7, 2019

概要

CacheEngineをRedisやMemcachedなどFile以外に変更すると、afterSave,afterDelete等で利用されているBcCacheBehavior::delCacheの処理でキャッシュが消えないようです。

(具体的には、管理画面で変更しているのにリロードするとキャッシュが参照されてしまい変更前のデータが表示されます。)

原因としては、delCacheの処理が、CACHE_DATA_PATHパス(app/tmp/cache/dataフォルダ内)のフォルダを削除する処理になっている為で、Cache::clear()をコールするようにすれば解消されます。

備考

baserCMS4.1.7にて上記現象を確認しました。

@ryuring ryuring added the Bug バグ label May 12, 2019
@ryuring
Copy link
Collaborator

ryuring commented May 12, 2019

@kaburk Fileの場合は、テーブルごとに消す仕様になっているようですので、そこを考慮する必要がありそうですね。

@ryuring ryuring changed the title CacheEngineをRedisやMemcachedなどFile以外に変更するとBcCacheBehavior::delCacheの処理でキャッシュが消えない 【システム】CacheEngineをRedisやMemcachedなどFile以外に変更するとBcCacheBehavior::delCacheの処理でキャッシュが消えない May 5, 2020
@ryuring ryuring added the Ver4 バージョン4 label Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug バグ Ver4 バージョン4
Projects
None yet
Development

No branches or pull requests

2 participants