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 回答