Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Contact - Is subscribed to newsletter property taking awhile to update View modes: 
User avatar
Member
Member
lukek - 2/26/2013 11:39:43 PM
   
Contact - Is subscribed to newsletter property taking awhile to update
Hey,

I am creating a demo for a customer which has a bit of functionality using Kenticos On-line marketing module, specifically with the contacts and newsletters.

I have a form that subscribes the user to a newsletter and once the user has done this the form is no longer viewable (using variants).

For the purposes of the demo I am using the contacts and checking whether or not the user has already been subscribed (if so hide the form, this is working). I have turned off most of the automatic remembering of contacts such as remembering permanently, recognise by user agent, and IP.

The issue I am having is that the contact doesn't seem to be updated that it has been subscribed to the newsletter till roughly about a minute after subscription.

For example I am using this macro to track if the current contact is subscribed to the newsletter
{%OnlineMarketingContext.CurrentContact.SubscribedToNewsletter("DealerCompetition", ToInt(0))%}

It seems as though any other contact macros I use are being updated immediately however but this one is taking awhile. I have checked cache and it seems turning of cache isn't doing anything, neither is clearing it manually or restarting the application.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/2/2013 11:33:08 AM
   
RE:Contact - Is subscribed to newsletter property taking awhile to update
Hi,

The activities are being logged by a scheduled task that runs every minute ("Proces activities log:)
You may use immediate logging of Activities by using this key in the web.config file:

<add key="CMSLogActivityImmediatelyToDB" value="true"/>

Best regards,
Juraj Ondrus