Web farms cahing problem

Andrey Martynenko asked on October 27, 2014 17:21

I have 2 servers, that use 1 DB. when i edit webpart on first server, i dont see changes at another. when i restart pool on second, i see changes, but this is not right.

What i should do?

Recent Answers


Brenden Kehren answered on October 27, 2014 17:24

It's because Kentico caches the data being displayed. By restarting the site/app pool, you're forcing the site to load fresh data vs. cached data.

Have you watched to see if the tasks are going over to the other server? Is your webfarm instance setup properly?

0 votesVote for this answer Mark as a Correct answer

Andrey Martynenko answered on October 27, 2014 17:31

this is my properties, if i understand you correctly. http://prntscr.com/50aszy

have some method, to do what i want?(i edit content on first server and see it on another)

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on October 27, 2014 17:35

Do you have file synchronization (i.e.: Microsoft DFS) setup on your web farm servers? I've found the "auto create servers" works most of the time but have not been able to place my finger on why it doesn't work all of the time.

0 votesVote for this answer Mark as a Correct answer

Andrey Martynenko answered on October 28, 2014 10:35

files are synchronized properly. Or i must synchronize iis temp files? this is very bad bug. i think than solve my problems, i think this key is a hack for such problems

0 votesVote for this answer Mark as a Correct answer

Filip Ligač answered on October 30, 2014 13:32 (last edited on October 30, 2014 13:32)

Just for a future reference, cache is invalidated automatically in a web farm environment when there are any changes (e.g. content, settings, media files) made on one of the servers.

If that does not work, it could be caused by 2 possible reasons:

  1. Synchronization between the web farm servers is non-functional due incorrect configuration or licensing issues.

  2. Web farm tasks have not been processed yet - especially when using "Update within request" mechanism, it might take some time till that happens.

More information about how web farms work in Kentico can be found in this blog post - Kentico 8 Technology – Web farm synchronization.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.