|
From: Todd L. M. <tm...@ha...> - 2000-05-20 18:55:47
|
Should saving a WikiTopic* update all pages links-to-me field? Pros: the info.php3 page could be pre-rendered. Cons: it will take a long time, and probably require some locking to handle contention properly. (That is, we could end up in a situation where every other topic in the database reflects one edit, and the other half a different edit.) It will also require additional space in the database. The info.php3 could not be pre-rendered; in fact, neither could the links-to-me field. (Thought it may be worthwhile to cache the list anyway, checking for 'expiration'; this would require another field in the database, however.) That being said, the infastructure for links-to-me (requires links-from-me field) is in place. (Though the 'elegant' solution I came up with for it involves the 'tag' <wikitopic TopicName /wikitopic>! I chose not to remove the tags from the final rendered version, in case they become handy later on :)) This, in turn, means that it will be easy to determine orphan status, and hub/node lists.** Furthermore, because the pre-rendering code includes auto-timestamping, the most-recently-changed list ought to be fairly simple to generate. -_Quinn *: It would be interesting to write a WikiFormatter for emails :) **: Which brings up the question of generating the global information page. I think once-a-day (e.g. by cron) or from the admin pages on-demand is a good way to go about it; on-the-fly generation will be rather expensive, and there's probably not a good way to pre-render/cache it -- every edit would have update things, which would get messy. |