Developer forum

Forum » Development » Caching
Aki Ruuskanen
Reply

Hi,

I use the below stuff to render som Items on solutions:

            var item = Dynamicweb.Content.Items.ItemManager.Storage.GetById(itemType, itemId);
            var template = new Dynamicweb.Rendering.Template(templatePath);        
            var renderer = new Dynamicweb.Content.Items.Rendering.Renderer();

            renderer.RenderItem(item, template);

Sometimes when the customer edit the item (just data) it takes quite some time before the change is shown on the web using the above code. Item casching is not activated on the Item. Is there some caching going on in the API?

Regards / Aki

 


Replies

 
Nicolai Høeg Pedersen
Reply

That should get the data directly. Can you see the SQL if you use debug=true or dbstat=true on this page after item edit?

 
Aki Ruuskanen
Reply

Actually I cannot at the moment recreate what the customer had problems with. 

I'll check the SQL if I get any more reports of similar behaviour.

 

 

You must be logged in to post in the forum