Kentico does not touch any dummy cache keys when changes occur for data submitted via forms.

Tom Wisneski asked on May 17, 2022 23:58

With a custom webpart form data is added to 2 custom tables hourly. One is a main "leads" table, and the other is an action log or "history" table. If an email already exists in the Leads table, it is an update rather then a new insert. However the history table logs the entry regardless. The issue is that on an update, the comments and other fields should reflect the updated data...However it is cached.

I have tried using the dummy cache keys in this format; customtableitem.Lead.Leads|all , and yes "Lead.Leads" is the code name for the leads table. Beyond clearing the system cache in Kentico, is there a way to do this? Thanks.

Correct Answer

Tom Wisneski answered on May 26, 2022 17:28

Thanks all. Please do not spend more time on this thread. Appreciate the input. Thanks

0 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on May 18, 2022 00:21

I'd suggest debugging your cache keys. There's a good chance you're key is too generic and simply caching the whole "leads" table when it should cache a different dataset.

Maybe caching is not needed on the custom tables, maybe you simply need to only get the form data that's been updated over the last "X" hours and run through the leads/action tables based on that database of updated/inserted form data. Then there's no need to even deal with the caching issues.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on May 18, 2022 06:00

Just adding link to documentation on debugging cache :-)

0 votesVote for this answer Mark as a Correct answer

Tom Wisneski answered on May 18, 2022 15:06

Juraj, I will check out the 'debugging' cache link. Brenden, we have to pull back the entire table. Our dealers need to query the data, so pulling back the past hour would not do. However I believe you are suggesting (if I understand correctly), when pulling back the recent submissions you would not have the caching issues otherwise experienced.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on May 19, 2022 13:43

Ok Tom, you didn't mention anything initially about an additional query the sales people needed to perform. How does this relate to the insert and update action in the custom tables?

0 votesVote for this answer Mark as a Correct answer

Tom Wisneski answered on May 19, 2022 18:53

This was an inhouse built Leads Management process. So leads are downloaded hourly from the company's contact us, request quote, download forms, etc., into the leads management table. With each download a history entry is created. Then on the front facing the dealer can view leads within their territories assigned to them by management. We have created filters to narrow the search when the data is brought back for a search (to update the leads, and set status; assigned, won, dead, etc.). So with re-engagement by a client / customer. The dealers need to view updated comments (the past comments are in the history or action tab to view). However the new comments are not showing up unless the Kentico cache is cleared...or after a period of time and returning to a fresh browser. The data is there...just that the cache is not clearing. Just wanted to give some further background on the issue/ project it is used on. Thanks.

0 votesVote for this answer Mark as a Correct answer

Ashish Kashyap answered on May 25, 2022 13:22

Just verify if you are caching the table items multiple times using a different Key.

0 votesVote for this answer Mark as a Correct answer

Tom Wisneski answered on May 25, 2022 15:20

Ashish, how would you go about confirming this ("Just verify if you are caching the table items multiple times using a different Key."). Thanks.

0 votesVote for this answer Mark as a Correct answer

Ashish Kashyap answered on May 26, 2022 07:25

If possible, please your code where you are caching the items.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on May 26, 2022 13:18

Like I first stated, debug your cache keys using Kentico.

0 votesVote for this answer Mark as a Correct answer

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