Question

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

Was it helpful?

Solution

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
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top