Skip to content

Commit

Permalink
fix baserproject#1765 メールコンテンツのデータキャッシュが無限に生成されてしまう問題のリファクタリング
Browse files Browse the repository at this point in the history
  • Loading branch information
kato committed Oct 18, 2021
1 parent 5107c9e commit 2efe01e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/Baser/Plugin/Mail/Config/setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
$MailContent->Content->getConditionAllowPublish()
],
'recursive' => 0,
'order' => $MailContent->id,
'cache' => false,
'order' => $MailContent->id
]);
foreach($mailContents as $mailContent) {
$mail = $mailContent['MailContent'];
Expand Down
2 changes: 1 addition & 1 deletion lib/Baser/Plugin/Mail/Model/MailContent.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class MailContent extends MailAppModel
*
* @var array
*/
public $actsAs = ['BcSearchIndexManager', 'BcCache', 'BcContents'];
public $actsAs = ['BcSearchIndexManager', 'BcContents'];

/**
* hasMany
Expand Down

0 comments on commit 2efe01e

Please sign in to comment.