2nd level read-only cache but cache.use_second_level_cache not set

31 views
Skip to first unread message

Tomek Pluskiewicz

unread,
Jun 23, 2011, 3:33:15 PM6/23/11
to nhu...@googlegroups.com
Hi

I've just enabled cache in a web project I develop. The project contains two web application: a front end and an administration panel.

The administration panel doesn't have cache.use_second_level_cache set and front end does as it generates most traffic and does not modify any data. 

Because the front end doesn't create or modify any objects I set some of the classes' cache to read-only. Surprisingly this caused an exception in the admin app, which I don't want to use cache at all.

Is that a bug or a feature?

Regards,
Tomasz

Dietrich

unread,
Jun 24, 2011, 9:17:41 AM6/24/11
to nhu...@googlegroups.com
If you are using 2nd level caching you want to use it everywhere. 

If your admin project changes data on a table, your front end will not see it if it is still cached, which may lead to other issues. 

Tomek Pluskiewicz

unread,
Jun 24, 2011, 10:37:40 AM6/24/11
to nhu...@googlegroups.com
Oh, I forgot to mention that. I'm (successfully) taking care of the issue you mention by using SysCache2 + SQL Cache Dependency. It indeed does work fine...

On the other hand I'm not sure I follow. Even if 2nd level cache is used everywhere as you mention the problem of synchronization does not just go away. The two applications run separately. They could even run on two diffenrent server, so that 2nd level cache is not shared. Or is it?

And still your answer doesn't anwer my initial question, so I'm still curious :)

Paul Hinett

unread,
Jun 24, 2011, 10:40:30 AM6/24/11
to nhu...@googlegroups.com

Try using a distributed cache which can be shared with as many servers / applications as you wish…I use memcached cahcing with my load-balanced app which works great.

 

http://www.couchbase.org/membase

--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To view this discussion on the web visit https://groups.google.com/d/msg/nhusers/-/k22DOt6tP0MJ.
To post to this group, send email to nhu...@googlegroups.com.
To unsubscribe from this group, send email to nhusers+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.

Tomek Pluskiewicz

unread,
Jun 24, 2011, 10:47:13 AM6/24/11
to nhu...@googlegroups.com
But this still is not the issue. As much as appreciate your suggestions, this time I'm trying to have read-only cache in one application and no cache at all in the other. And I don't want to have two separate sets of mappings... 
Reply all
Reply to author
Forward
0 new messages