ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 11658


Ignore:
Timestamp:
May 18, 2009, 4:02:34 AM (13 years ago)
Author:
ebihara
Message:

#3765:When APC is loaded, OpenPNE uses Doctrine's query cache system

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/config/ProjectConfiguration.class.php.sample

    r11526 r11658  
    2727  {
    2828    $manager->setAttribute(Doctrine::ATTR_MODEL_LOADING, 2);
     29
     30    if (extension_loaded('apc'))
     31    {
     32      $cacheDriver = new Doctrine_Cache_Apc();
     33      $manager->setAttribute(Doctrine::ATTR_QUERY_CACHE, $cacheDriver);
     34    }
    2935  }
    3036}
Note: See TracChangeset for help on using the changeset viewer.