From: Chad L. <ch...@ch...> - 2004-05-23 16:03:21
|
It checks the mod time of every calendar and stores it, then rechecks them every page load. If any calendars are missing or their mod time is changed, it reparses and saves again. I dont know how it works with login, I assumed it would all work since I build it just before it would be normally parsed. It wouldn't be hard to add a big more code for logged in users. -C On May 23, 2004, at 1:58 AM, Wesley Miaw wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi Chad, > >> I've built a cache mechanism for All Combined. This is a major time >> and processor saver. Please test it out (change, add, and remove >> calendars) and let me know how much it saves you. My times from from >> 2.3 seconds to 0.4 seconds. > > I only see the cached All Combined calendar for the non-user > calendars. Not sure why (based on my brief look at the code), but the > All Combined calendars are not cached if a user is logged in. I guess > that makes sense right now since the cached All Combined calendar > doesn't have the username appended to the filename. > > Also, I believe the current code checks if the source calendar has > changed by comparing time-stamps between the source and cached file. > This probably needs to be done for the All Combined calendar cache as > well, if it is not being done already. > > Later, > - -- > Wesley Miaw > http://www.wesman.net/ > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.3 (Darwin) > > iD8DBQFAsGfSQv4agqRAk2kRAqMiAJ4z8fOElwK+p+0UxRpNwh4i9U+s4gCgoer1 > PNl7hT+JLjkQqZnEoUX3+Xo= > =WUD4 > -----END PGP SIGNATURE----- > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle > 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Phpicalendar-devel mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpicalendar-devel |