문제

Is there any possibility to enable Doctrine's Query Caching for a given application? Tried in Configuration.class.php, but without luck.

도움이 되었습니까?

해결책

You can add your:

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

to your:

/<project_path>/apps/<app_name>/config/<app_name>Configuration.class.php
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top