On 11/5/05, Paul Benedict <[EMAIL PROTECTED]> wrote: > While it is not clear, I think it is recommending to > add a cache to the getProductsByCatId method (not the > parent getCategoryResult). Is that correct? I have > many sub-selects and it makes sense to put the cache > there, the only problem being I can never tell when > the cache is actually hit - everything always seems to > go to the DB.
I think if you see output in your logs that indicate the DB is being hit, it is. IIRC, the LACK of logging indicates a cache-hit. THis was bugging me greatly, so I put in some logging code into the cache layer for this.