Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a standard way to cache doctrine objects?

Suppose I have many objects with attributes that rarely change. I don't want the DB being hit all the time to fetch the data for those objects. What can I do?

like image 460
HappyDeveloper Avatar asked Oct 10 '22 00:10

HappyDeveloper


1 Answers

Doctrine2 offers query and result caching.

The caching relies on third party caching solutions like APC, Memcache and Xcache. Doctrine offers drivers to integrate those into your application.

like image 105
Raffael Avatar answered Oct 18 '22 08:10

Raffael