Skip to content

閲覧件数、回答件数、未読件数処理について #37

Description

@kteraguchi

コメントに書いてありますが、issueにもあげときます。

foreach ($contents as $i => $content) {

ContentCommentsプラグインにもあげたのですが、件数の取得処理が厄介な感じです。
NetCommons3/ContentComments#2

CakePHPだと、counterCacheという仕組みが提供されています。
http://book.cakephp.org/2.0/ja/models/associations-linking-models-together.html#countercache-count
これだと、テーブルにフィールド追加になります。

状態ごとに件数を取得することを考えると、counterCacheはきびしいと思ったのですが、
状態ごとの件数をフィールドにもつと行けそうです。
案としてあげときます。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions