MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Web Part Caching   (Mono Support )

Viewed 35964 time(s), 17 post(s) 11/26/2013 4:21:18 PMby Dinesh.Sajwan
Dinesh-Sajwan

Dinesh.Sajwan

11/28/2013 2:48:38 AM
Hi,

After lots of RND i found out the issue and resolution. thought i will share it with the group so that they don't loose time and energy.

If you have added page output caching in the page (via page properties) and then trying to modify the "cacheduraioninseconds" from web part properties then it will not save the value and make it zero. Remove the Page Output Caching from page and then try to modify the webpart properties. 

Regards
Sumit
Rated 5.00, 1 vote(s). 
1284 Reputation 156 Total posts
Dinesh-Sajwan

Dinesh.Sajwan

11/26/2013 4:21:18 PM
Hi,

we have implemented webpart caching on DiscussionContainer.ascx
when we are posting a new post in Topic or when we are adding a new topic Topic List and Discussion List does not gets updated but no of topics and posts gets updated.

We found that counts are getting invalidated but topic list and discussion board id is not getting invalidated.

please help.

also tell us whether we can user varybyparam in webpart caching?

Regards
Sumit
This content has not been rated yet. 
1284 Reputation 156 Total posts
Dinesh-Sajwan

Dinesh.Sajwan

11/27/2013 3:21:57 AM
Hi, 

Please reply as this is urgent.
 i saw the same functionality implemented in your discussion forums. as soon as i add a new post the topic list gets  updated as well as in the Discussion board list also it updates the last topic and last post details.

need the same functionality. please help this is urgent as our site is becoming slow day by day and caching is the only solution.

Regards
Sumit
This content has not been rated yet. 
1284 Reputation 156 Total posts
Dinesh-Sajwan

Dinesh.Sajwan

11/27/2013 6:55:49 AM
One More issue,

When i am trying to set Cache duration time: from webpartproperties its not getting changed in our staging/live environment. but it gets changed in our local environment.

can you please help us in this issue also..

Regards
Sumit
This content has not been rated yet. 
1284 Reputation 156 Total posts
khorvat

khorvat

11/27/2013 8:13:04 AM
Hi,

Please reply as this is urgent.
 i saw the same functionality implemented in your discussion forums. as soon as i add a new post the topic list gets  updated as well as in the Discussion board list also it updates the last topic and last post details.
did you try to sync the discussion user control markup with the latest version of MonoX ?

We did some work around that in 4.7 or 4.8 if I can recall correctly. 

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
khorvat

khorvat

11/27/2013 8:16:55 AM
Hi,

One More issue,
 
When i am trying to set Cache duration time: from webpartproperties its not getting changed in our staging/live environment. but it gets changed in our local environment.
You need to be aware that changing setting of the WebParts will affect only current database and these settings are saved in your local database, so when you push your code to staging or production you are not pushing those changes. 

The best way to push changes across environments is to set them in markup, so every WebPart setting exposed through the admin toolbar is also available in markup.

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
Dinesh-Sajwan

Dinesh.Sajwan

11/27/2013 8:32:55 AM
Hi,

I am doing the changes in the admin interface of staging only and not in local. what i am trying to say is that its not reflecting in staging environment. please help

also please answer my first and second post...

Regards
Sumit
This content has not been rated yet. 
1284 Reputation 156 Total posts
khorvat

khorvat

11/27/2013 9:26:17 AM
Hi,

I am doing the changes in the admin interface of staging only and not in local. what i am trying to say is that its not reflecting in staging environment. please help
Can you let me know what settings are not reflected so we can investigate ? Cache settings or some other settings ? If we are talking about the Cache settings then you need be know that cache settings per WebPart are used for database access caching purposes so you will still have a page lifecycle and you will have the request to web server but you will not have request to db server.

I have posted a question regarding your first and second post:
did you try to sync the discussion user control markup with the latest version of MonoX ?

We did some work around that in 4.7 or 4.8 if I can recall correctly.
Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
Dinesh-Sajwan

Dinesh.Sajwan

11/27/2013 9:44:40 AM
Hi,

This is what i am trying to do.

1. login as admin to staging server application
2. clicked on discussion tab
3. when discussion page opened then clicked on "web part properties" of discussioncontainer
4. changed "cachedurationinseconds" property from 0 to 120
5. clicked on apply.
6. checked again value was still 0.

hope i am clear this time

Regards
Sumit
This content has not been rated yet. 
1284 Reputation 156 Total posts
Dinesh-Sajwan

Dinesh.Sajwan

11/27/2013 10:43:22 AM
Hi,

Please help.

Regards
Sumit
Rated 1.00, 1 vote(s). 
1284 Reputation 156 Total posts
khorvat

khorvat

11/27/2013 10:54:38 AM
We are trying to reproduce the issue in our environment, please be patient.

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
1 2