AnsweredAssumed Answered

Caching in a REST call

Question asked by spilby on Apr 29, 2014
Latest reply on Apr 29, 2014 by mrogers
Good morning,

I'm having a caching problem… When I do a REST call to my Java Backed Webscript (a simply webscript that logs the properties of each node from a path) I could see that the result is cached, because if I modify these properties I can't see the changes until I restart. Every time the result is the same than the first call. Is normal?

This is my webscript code:

NodeRef folder = repository.getCompanyHome();
List pathElements = new ArrayList();
StringTokenizer tokenizer = new StringTokenizer( "User Homes/Directory 1/Directory 2", "/");
while (tokenizer.hasMoreTokens()) {
String childName = tokenizer.nextToken();

NodeRef nodeRef2 = serviceRegistry.getFileFolderService().resolveNamePath(folder, pathElements).getNodeRef();
logger.debug("PROPERTIES —> " + getNodeService().getProperties(nodeRef2);

What can I do for return the real properties each time and not the first time result? What I'm doing wrong?