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

【システム】BcAppModelのgetMaxを使用するとリクエスト内の同一のクエリがキャッシュされる #2939

Closed
seto1 opened this issue Dec 13, 2023 · 1 comment
Labels
Bug バグ Ver4 バージョン4

Comments

@seto1
Copy link
Collaborator

seto1 commented Dec 13, 2023

baserCMS version : 4.8.0

内部でcacheQueriesがtrueになることが原因

https://book.cakephp.org/2/ja/models/model-attributes.html#cachequeries

public function getMax($field, $conditions = [])

@seto1
Copy link
Collaborator Author

seto1 commented Dec 13, 2023

データの保存を複数回行うときに問題が出てくる
特にTreeBehaviorを使用しているモデルの場合はlftとrghtが正常な値にならない

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