0

特定のアプリケーションに対してDoctrineのクエリキャッシングを有効にする可能性はありますか?Configuration.class.phpで試しましたが、運がありませんでした。

4

1 に答える 1

1

あなたはあなたを追加することができます:

  public function configureDoctrine(Doctrine_Manager $manager)
  {
    // Doctrine_Cache_Apc in the example
    $manager->setAttribute(Doctrine::ATTR_QUERY_CACHE, new Doctrine_Cache_Apc());
  }

あなたに:

/<project_path>/apps/<app_name>/config/<app_name>Configuration.class.php
于 2011-11-06T12:54:33.073 に答える