Developer forum

Forum » Swift » Swift2, Employee item and updated data

Swift2, Employee item and updated data

Suzi Louring
Suzi Louring
Reply

Hi

DW 10.14.4
Swift 2

In the new Employee item it is possible to select a user, which is nice, instead of static data. 
But if I edit the user, the changes are not shown in frontend, unless I save the specific column again.
Shouldn't data come dynamically from the user?
 

/Suzi


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Suzi

There is a bit of caching involved - for performance reasons, the viewmodel being rendered will be cached for some time. When you save the column, the cache is renewed. So the title will update eventually also without saving the column. We can take a look if it is possible to clear the cache when a user is edited.

BR Nicolai

 
Suzi Louring
Suzi Louring
Reply

Thanks Nicolai, that would be great :)
Right now the customer doesn't know when the data will be updated.

/Suzi

 

 
Suzi Louring
Suzi Louring
Reply

Is it possible to clear the cache manually?
And how?

/Suzi

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

I think you can reset the paragraph cache:

 
Suzi Louring
Suzi Louring
Reply

No, that doesn't help :(

/Suzi

 

 

You must be logged in to post in the forum