Hi

I don't think it's a good idea to use caching in the session variable. We should try to keep the session variable as clean as possible (and it's already messed up with quickform stuff...). I think in your case, the best solution could be to have a DB table in the content object of the handbook which stores the menu and which gets updated whenever the handbook changes. I would not use memcached or another tool for caching because this would mean that we would demand yet another package to be installed on the server before chamilo can be used.

Best regards
Sven

Op 26/04/11 12:13, Nathalie Blocry schreef:
Hi all,

For the handbook application I realy realy realy need caching because
otherwise the application becomes very slow.

without caching a lot of processing and data-retrieval is needed: for
every item in the handbook all the alternative versions and their
meta-data need to be retrieved so that the most appropriate alternative
can be determined. This is necessary so that the correct title can be
displayed in the menu.
Since this is rather static content, going through the process of
building the whole menu on every page request is not very efficient.
I have done a test by caching the menu and all the alternatives on the
session and it has cut the time in 4 for a rather large (but not huge)
handbook.

Now I am looking for the best way to handle this caching, as I don't
have any experience with it.

would it maybe not be best to look at things like Memcached?
or would serializing the things I cache on the session for now and store
these in the database (doing just one db-query instead of a gazillion
and eliminating most of the processing) be a good solution?


I would appreciate your input!


Kind regards,

Nathalie


_______________________________________________
Dev mailing list
Dev@lists.chamilo.org
http://lists.chamilo.org/listinfo/dev


--
Met vriendelijke groeten

Sven Vanpoucke
Digitaal Leren
Directie Onderwijs
Hogeschool Gent
http://digitaal-leren.hogent.be/


_______________________________________________
Dev mailing list
Dev@lists.chamilo.org
http://lists.chamilo.org/listinfo/dev

Reply via email to