why pagebuilder taking time (5-7 min) to show changes in live site?

Muhammad Kaleem asked on May 3, 2019 13:21

i'm using kentico12 mvc,in local system pagebuilder working fine but when it goes to online the changes in pagebuilder takes time to show in live site but in preview mode it shows the changes, please suggest if anyone know about...

thanks

Recent Answers


David te Kloese answered on May 3, 2019 13:46

Most logical seems you (or the developer) have implemented some sort or caching in data retrieval.

You might need to setup some cache dependencies to invalidate the cache when you change something.

Check the documentation on how to use this: docs.kentico.com/.../caching-on-mvc-sites

0 votesVote for this answer Mark as a Correct answer

Muhammad Kaleem answered on May 3, 2019 14:09 (last edited on May 3, 2019 14:13)

Thanks David te Kloese, i did not implement like this i'm only retrieving data from that widget controller, it is working fine on my local system but takes in online version

here is the sample of code

 var properties = GetProperties();
            var image = GetImage(properties);
            return PartialView("Widgets/_TextWithLeftImage", new TextWithLeftImageWidgetViewModel
            {
                Image = image,
                Text = properties.Text,
                ButtonTarget = properties.ButtonTarget,
                ButtonCaption = properties.ButtonCaption,
                Tag = properties.Tag,
                ImageAlt = properties.ImageAlt
            });
0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on May 3, 2019 14:13

How do you request your data? As I know both Object query and SQL might also do some caching if you don't explicitly tell it not to.

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on May 3, 2019 14:32

Could you show the code for GetProperties(); and GetImage();

0 votesVote for this answer Mark as a Correct answer

Muhammad Kaleem answered on May 7, 2019 08:15

GetProperties(); is a builtion method that i have access by this library Kentico.PageBuilder.Web.Mvc and GetImage(); is here

 private DocumentAttachment GetImage(TextWithLeftImageWidgetProperties properties)
        {
            var page = GetPage();
            return page?.AllAttachments.FirstOrDefault(x => x.AttachmentGUID == properties.ImageGuid);
        }
0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on May 7, 2019 09:41

Are the web farms working fine? The web farm sync must work and Kentico admin and MVC app must be marked as healthy and no tasks in the queue. Otherwise, there should be some errors in the tasks queue or in the Event log.

0 votesVote for this answer Mark as a Correct answer

Muhammad Kaleem answered on May 10, 2019 13:26 (last edited on May 10, 2019 13:50)

Juraj Ondrus, all web farm servers are enabled and status healthy but giving this exception please suggest

"Web farm synchronization is currently disabled. You need a valid license that supports all your healthy web farm servers."

thanks

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on May 10, 2019 13:58

well "You need a valid license that supports all your healthy web farm servers." kinda already explains.

How much web farms do you have and how many does your license grand you?

1 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on May 10, 2019 14:01

If you have 1 Kentico admin application and one MVC application, you need license key(s) with at least 2 servers allowed.

0 votesVote for this answer Mark as a Correct answer

Muhammad Kaleem answered on May 13, 2019 11:46

Thanks Juraj, in license application, there are two license domains added with different license keys and no of web farm servers for both domains count 1, and one license edition is Base and other is Free, can this cause problem of synchronization as i'm facing exception of `"Web farm synchronization is currently disabled. You need a valid license that supports all your healthy web farm servers." you can see screenshot of licenses application in the following url, please suggest about this

https://wetransfer.com/downloads/565d79adc9673607af8f9caf681e6b5e20190513094049/e4cddb1f1ad59749615eb86f11eeac6e20190513094049/9f38dc

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on May 13, 2019 11:52

Yes, the license keys are the issue. You need to have a license keys with web farm servers count set to 2. Also, in FREE edition web farms are not supported. You need to generate given license keys using the client portal or, send the license keys request to sales@kentico.com

0 votesVote for this answer Mark as a Correct answer

Muhammad Kaleem answered on May 13, 2019 11:56

thank you so much Juraj, I will try and let you know if the issue persists.

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on May 13, 2019 11:59

Ah and that's also why it worked on your local environment:

licenses

Although that now probably also broke as the expiration date is set to today!

0 votesVote for this answer Mark as a Correct answer

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