| Mark B 2007-08-24, 1:19 pm |
| Hi All,
In the MCMS site that I inherited, there are several dynamic
navigation menus. The menus themselves use the RadMenu controls that
are bound to programatically created XML documents.
The XML docs are held in cache to make things more efficient. The
problem occurs when the cache expires and the XML gets recreated. The
way this was built, there is a placeholder on the template for the
menu entry. If the placeholder has something in it, the page is added
to the menu. When the XML is created, the page must iterate through
every posting in the site. When things started and there were very few
postings, this was not a problem. Now it takes several minutes and
often causes the page to time out.
I have increased the cache time so that it's not happening as often
but it's still a pain. Also, increasing the cache time causes updates
to delay in displaying until the cache expires and the XML updates.
That's the background. What would be a more efficient way to create
the menu rather than iterating through every post to see which ones
get added to the menu? Is there some way to set a flag when a page is
created or updated to force the XML to refresh when there is a change
to the menu placeholders but allow it to run off the cache until that
flag is set? Is there a way to flag individual posting files to show
that they have data in these placeholders without being required to
look at every posting?
All input is appreciated.
Thanks,
Mark B
|