This project has moved and is read-only. For the latest updates, please go here.

How to make the rewrite url work at once?

Jul 11, 2014 at 6:10 AM
Edited Jul 11, 2014 at 6:24 AM
Hi,

I did implement the url provider for SunBlogNuke module(another blogging dnn module) and everything works as expected.

And it looks that this issue exists in DNN7 but not DNN6.

One issue:

It only rewrite the url when restart app or any action to clear cache. If not, it will generate the old/unfriendly url. Why or any workaround for it?

Thanks.

Regards
Baldwin
Jul 11, 2014 at 8:36 AM
Well, I found the workaround in other thread - indeed have to clear cache in my module level when the url created/modified like that:

string cacheKey = "UrlRuleConfig" + portalId;
DataCache.ClearCache(cacheKey);

Hope it helps if anyone encountered the same issue.
Jul 11, 2014 at 10:19 PM
There is also an other possibillity if your module use internally caching.
In that case you can have automatic open url rewriter cache clearing depending on your cache clearing.
You can find an exemple on the TabProvider.

To be complete if you don't clear the cache , it is automatically cleared between 20 min and 3 hours depending on your host cache settings.

Regards,
Sacha