473,320 Members | 2,080 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Custom sitemap provider - how to refresh?

Hello, i have created a custom sitemap datasource. The sitemap gets all
pages from a collection from a CMS system (not directly from a database).

I have declared my sitemap provider as default in web.config. In the pages I
have a sitemap datasource and corresponding menus.

Question:
- Where is the data cached?
- How can I release it from the cache and refresh the data?

I have built in a method called
I can't set up a filedepencency and neather a sql datasource dependency.

Any suggestions?

Regards
Anders
Mar 6 '07 #1
3 5710
Hi

The SiteMapProvider is basically instantiated when the website starts up.
_root is a variable defined in the scope of the provider, thus it is in
memory until the website recycles, or until the code is changed (also causing
a re-cycle).

Sorry

Adlai

--
-------------------------------------
If my answer helped you please press "Yes" bellow

אם תשובה זו עזרה לך, א*א הצבע "כן"

Adlai Maschiach
http://blogs.microsoft.co.il/blogs/adlaim/
"Anders" wrote:
Hello, i have created a custom sitemap datasource. The sitemap gets all
pages from a collection from a CMS system (not directly from a database).

I have declared my sitemap provider as default in web.config. In the pages I
have a sitemap datasource and corresponding menus.

Question:
- Where is the data cached?
- How can I release it from the cache and refresh the data?

I have built in a method called
I can't set up a filedepencency and neather a sql datasource dependency.

Any suggestions?

Regards
Anders
Mar 6 '07 #2
Hi

another option that came to mind is the fact that
you might use more then one site map in memory
and witch between them

Adlai
-------------------------------------
If my answer helped you please press "Yes" bellow

אם תשובה זו עזרה לך, א*א הצבע "כן"

Adlai Maschiach
http://blogs.microsoft.co.il/blogs/adlaim/
"Anders" wrote:
Hello, i have created a custom sitemap datasource. The sitemap gets all
pages from a collection from a CMS system (not directly from a database).

I have declared my sitemap provider as default in web.config. In the pages I
have a sitemap datasource and corresponding menus.

Question:
- Where is the data cached?
- How can I release it from the cache and refresh the data?

I have built in a method called
I can't set up a filedepencency and neather a sql datasource dependency.

Any suggestions?

Regards
Anders
Mar 6 '07 #3
Thank's for your answer. The XML Sitemapprovider uses filedependency for the
cache and the SQL Sitemapprovider (from the wicked code, msdn) uses SQL
Cache dependency.

Are there any dependency left for me :) ? (using MySQL as backend but have a
DAL between). Are there some way for me to notify and release the cache?

Regards
/Anders
"Adlai Maschiach" <Ad************@discussions.microsoft.comskrev i
meddelandet news:75**********************************@microsof t.com...
Hi

The SiteMapProvider is basically instantiated when the website starts up.
_root is a variable defined in the scope of the provider, thus it is in
memory until the website recycles, or until the code is changed (also
causing
a re-cycle).

Sorry

Adlai

--
-------------------------------------
If my answer helped you please press "Yes" bellow

?? ????? ?? ???? ??, ??? ???? "??"

Adlai Maschiach
http://blogs.microsoft.co.il/blogs/adlaim/
"Anders" wrote:
>Hello, i have created a custom sitemap datasource. The sitemap gets all
pages from a collection from a CMS system (not directly from a database).

I have declared my sitemap provider as default in web.config. In the
pages I
have a sitemap datasource and corresponding menus.

Question:
- Where is the data cached?
- How can I release it from the cache and refresh the data?

I have built in a method called
I can't set up a filedepencency and neather a sql datasource dependency.

Any suggestions?

Regards
Anders

Mar 7 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sydem | last post by:
Hello. I have been learning about the SiteMap provider using the following example at...
2
by: John | last post by:
Hi I was working fine with create user wizard and the default membership provider. I have now customised the membership provider as per attached web.config. The create user wizard picks up the...
0
by: jonathan.eves | last post by:
Hi I am having a hard time with localization of the sitemap. I have created a custom SiteMapProvider which inherits from StaticSiteMapProvider. For which everything works fine. The next...
1
by: Danial | last post by:
Hi, How can I bind sitemappath (breadcrumb control of asp.net) to a custom ..sitemap file? By defualt its looking for web.sitemap file and giving me not found exception. Thanks Danial
1
by: Ryan | last post by:
Im building a mutli-lingual website in .net 2.0 and Im having an issue with url rewriting and Im having an issue with the xml sitemap provider and menus. If i have a url:...
1
by: AmitKu | last post by:
Here is my situation. I have two sitemaps registered, A and B, where A is used by my default provider. When I do Sitemap.CurrentNode it operates w/ respect to the default provider. However, I...
0
by: Mwob | last post by:
Hi all, I'm about to start creating a custom membership provider. Its for a website that already has a table of users in a single table, so I need to create a custom MP to talk to the data in...
0
by: Keven | last post by:
Hi All, I have two siteMap providers: <siteMap defaultProvider="SiteMap_EN" enabled="true"> <providers> <add name="SiteMap_FR" siteMapFile="Web_FR.sitemap"...
1
by: Mark B | last post by:
In my Title and Description web.sitmap file I use: 3255|Home 5434|Support 5342|Contact etc in the Title and Description properties. The number represents a phrase lookup ID in a function...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shllpp 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.