From: Gaulin, M. <mg...@gl...> - 2005-03-22 13:42:33
|
Hi Shane I was looking for some mechanism other than waiting for cache times to = expire (like a slashd-to-apache/Slash IPC or something), but I guess it = doesn't exist. From your FAQ, I now know that the block_expire value = controls block and template cache times, so I should expect the motd to = change at a rate no faster than that. I can live with that. Thanks Mark=20 -----Original Message----- From: Shane [mailto:sh...@lo...] Sent: Monday, March 21, 2005 10:24 PM To: Gaulin, Mark Cc: sla...@li... Subject: Re: [Slashcode-general] "message of the day" caching? On Mar 21, 2005, at 4:53 PM, Gaulin, Mark wrote: > Hi > There is a built-in footer "message of the day" (motd) that has a task = > (new_motd) for picking a new one. I added some code to that task to=20 > randomly pick from a list of quotes. When I run the task manually I=20 > can see a new quote in the motd template (by looking right at the db), = > but the quote displayed on the site doesn't change until I restart=20 > apache. Is this a template caching issue? What is the "right" way to = > handle this? > > Thanks > Mark Well, you need to look at this from a different point of view. You've=20 obviously already looked at the new_motd task src a little bit, and=20 mod'd it. What exactly is the task doing? Is it populating a template? A block? A var? Then find out what's cached (hint: the faq may explain some of it:=20 http://slash.lottadot.com//faqster.pl?op=3Dview&fid=3D1 ) Compare what's cached, to what the task is doing, and there's your=20 answer. Shane PS - this is sometimes helpful too:=20 http://slash.lottadot.com/files/nocache.plx -- My slashcode stuff: http://slash.lottadot.com/ |