Page 1 of 1

Question about cache

Posted: Mon Jun 17, 2013 2:31 am
by staleks
Hi,

I am aware that all cache definition goes to `bl-override-ehcache.xml` file. The question is what is the proper way to add new definitions?

e.g.
I have one controller, that by DI makes use of CatalogService and specially method findAllCategories().

As you may assume, categories will be rarely changed (maybe once a day or not even then) and therefore a first candidate to cache it.

Can you explain me what to use as name of the cache? I am aware that you use EhCache as implementation of cacheing mechanism, but how this caching mechanism in BLC works anyway?
I am trying to find @Cacheable annotation in broadleaf code but no luck till now :)

Thank You