Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [pugdog] Calendar Script - development.

Quote Reply
Re: [pugdog] Calendar Script - development. In reply to
I'm banging on this again, and I have a question about caching pages. Generating a "detailed" calendar page on each user request seems to be a huge waste of resources, especially since the calendar will only change when an event changes.

The "unit" in a calendar is an "Event". That has a bunch of associated characteristics, the "key" is a "Date".

Events are assembled into display units called "Days".

Days are then assembled into calendars, which can be weeks or months.

The units change only as often as the smallest unit within them changes. A calendar changes if a Day changes, and a day changes if an event changes.

Right now, I'm generating the calendar by selecting events within a range, then sorting them into days, and then into a calendar.

Has anyone thought about caching this sort of data?

If I store "days" then when a calendar is assembled, I can just "include" the days that are part of that calendar.

If I then store the calendar, I can just "include" that whole unit, and only update that unit if a "day" changes.

I can trigger the updates through the calendar admin (ie: when an event is changed/added/deleted), or it can be done the first time that view is called.

There are problems with each sort of view, but it seems extremely wasteful to re-generate a calendar without caching at least _some_ data.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Subject Author Views Date
Thread Calendar Script - development. pugdog 14885 Apr 29, 2003, 9:30 AM
Thread Re: [pugdog] Calendar Script - development.
pugdog 14267 Apr 29, 2003, 11:26 AM
Thread Re: [pugdog] Calendar Script - development.
jaltuve 14223 May 6, 2003, 4:18 PM
Thread Re: [jaltuve] Calendar Script - development.
pugdog 14227 May 6, 2003, 7:56 PM
Thread Re: [pugdog] Calendar Script - development.
pugdog 14160 Jun 8, 2003, 10:45 PM
Thread Re: [pugdog] Calendar Script - development.
pugdog 14078 Jun 17, 2003, 9:17 AM
Thread Re: [pugdog] Calendar Script - development.
webslicer 14124 Jun 18, 2003, 1:15 AM
Thread Re: [webslicer] Calendar Script - development.
pugdog 14117 Jun 18, 2003, 8:11 AM
Thread Calendar Script - suggestions
webslicer 14065 Jun 18, 2003, 9:05 AM
Thread Re: [webslicer] Calendar Script - suggestions
pugdog 14092 Jun 19, 2003, 9:56 AM
Thread Re: [pugdog] Calendar Script - suggestions
ccunet 14041 Jun 19, 2003, 7:27 PM
Post Re: [ccunet] Calendar Script - suggestions
pugdog 14033 Jun 20, 2003, 2:52 PM
Thread Re: [pugdog] Calendar Script - development.
pugdog 13961 Jun 27, 2003, 11:46 AM
Post Re: [pugdog] Calendar Script - development.
pugdog 13959 Jul 1, 2003, 9:20 AM
Thread Re: [pugdog] Calendar Script - development.
pugdog 13900 Jul 6, 2003, 9:24 PM
Thread LSQL for Timeline?
YoYoYoYo 13814 Jul 20, 2003, 6:50 AM
Thread Re: [YoYoYoYo] LSQL for Timeline?
pugdog 13694 Dec 1, 2003, 6:46 PM
Thread Re: [pugdog] LSQL for Timeline?
ccunet 13501 Apr 25, 2004, 7:11 PM
Thread Re: [ccunet] LSQL for Timeline?
pugdog 13507 Apr 25, 2004, 10:22 PM
Post Re: [pugdog] LSQL for Timeline?
ccunet 13430 Apr 26, 2004, 6:17 AM
Thread Re: [pugdog] LSQL for Timeline?
netnow21 12786 Nov 10, 2008, 9:10 AM
Post Re: [netnow21] LSQL for Timeline?
Andy 12808 Nov 10, 2008, 9:35 AM