From: Sylvie G. <sgr...@at...> - 2003-09-29 17:03:36
|
So the problem is not to cache the modules but to cache database queries? > -----Original Message----- > From: tik...@li... > [mailto:tik...@li...]On Behalf Of mose > Sent: Monday, September 29, 2003 11:15 AM > To: tik...@li... > Subject: Re: [Tikiwiki-devel] tiki modules & cache > > > le Mon, Sep 29, 2003 at 03:56:57PM +0100 par David R. Newman : > > Sylvie Greverend wrote: > > > > >I would like to take away the tiki modules cache: > > > > > >1) we all have observed that some modules are not refreshed immediatly. > > >2) to correct this, we added the nocache files for a lot of > modules (at > > >least each module on tikiwiki.org (I think) has a nocache file) > > >3) I noticed that the cache modules is not function of the language. > > >It's meant that when you change language the modules that are > cached are > > >not refreshed immediately. > > >To repair this, we need to have a module cache for each > language. (as it > > >has being done for the tikidomain) > > >4) IMHO, even if a cache can save some sql accesses, a user > doesn't want > > >it: he is ok not to see the last pages another user changed, but he > > >doesn't understand why the page he just changed doesn't appear in the > > >module > > >5) IMHO, there are so many tests to know if there is a cache, > if .... , > > >I bet a sql query is not so bad > > > > > >SO, do we take away this feature? > > >Sylvie > > > > I long ago suggested replacing the tiki modules cache with > > Smarty output caches. That has the advantage that when > > something is updated, the code can also clear the relevant > > Smarty output caches. At all other times, no Smarty > > processing is needed for the module, as Smarty automatically > > uses the output cache where it is valid. So you can have an > > infinite cache life, until the time something changes. > > Also, by using Smarty cache IDs, you can have separate caches > > for each language and each group of users. > > - smarty cache only refresh for changes in tpl files, > not changes in db, afaik. > > > mose > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Tikiwiki-devel mailing list > Tik...@li... > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel > |