gremo
gremo

Reputation: 48919

How cache works in Symfony 2 DIC and how can I use it?

I can't find any tutorial or useful information about caching the configuration of a bundle.

Basically my bundle loads a lot (20+) of tagged services. Can I use cache to speed up the compiler pass? How the cache should work? The only little piece of information I can find is Dumping the Configuration for Performance.

Upvotes: 0

Views: 379

Answers (2)

ChocoDeveloper
ChocoDeveloper

Reputation: 14588

Whenever you read the components section, beware that some of the information will be aimed for people using the components outside of the framework.

From the link you posted:

In the full stack framework the compilation and caching
of the container is taken care of for you.

Upvotes: 0

Max Małecki
Max Małecki

Reputation: 1702

For sure you're using an APC cache right so further you can cache in memcached/redis popular query results(like prepopulated lists, categories and stuff).

For further optimizations check this presentation:

http://slides.seld.be/?file=2011-10-20+High+Performance+Websites+with+Symfony2.html#1

It really rocks your world!

Upvotes: 1

Related Questions