
Klaus Kaempf napsal(a):
* Martin Vidner <mvidner@suse.cz> [Jun 23. 2009 17:09]:
Hi,
as I mentioned yesterday, I have a problem with caching of data.
The data to cache are the commands accepted by individual LSB init scripts. They used to be cached in the session map which is now stored in cookies.
Can you explain in more detail why this is needed and what you're trying to achieve ?
Originally the list of scripts was a small faked one but as soon as I switched to the real thing, the cookie started to overflow: ActionController::Session::CookieStore::CookieOverflow As a temporary workaround I turned off the cache.
What options are there for caching?
The rest-servicce backend should not cache anything since it is meant to be stateless. The web-client should only hold the session cookie for caching the login credentials.
I think that caching in web-client is not so bad, if you cache "constants". Of course you can define constants directly in this module, but it is possible that that constant is changed sometime (less then once per month). For example possible timezones is quite big data, which doesn't change much often. So I cache it in web-client to save some transfer and to increase performance (waiting more then second to after every action on web page is to much for me). JR
Klaus --- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
-- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org