cancel
Showing results for 
Search instead for 
Did you mean: 

New content via JCR doesn't update in web client

teamkrusty
Champ in-the-making
Champ in-the-making
For some reason when i create content using the JCR addNode method the data is created, but only shows up when i create a new piece of manual content in the client.  This makes me think the panel view is cached somehow and the cache is only updated when I interact directly with the web interface.  Is this because I am logged in with the same user?   I am adding content directly to the 'company_home' space.  I can see it when i programmatically walk through the space, so this is just a JSF view issue I think. 
Juat wondering if I'm doing something that might cause this behavior.
I have tried logging out and logging in, but to no avail.  This is what confuses me about the cache…
Smiley Very Happy
2 REPLIES 2

turgayz
Champ in-the-making
Champ in-the-making
I also experienced this behaviour, which made me think that the web client has a cache, which prevents it showing changes made from outside of the web application.

When I add a new node using nodeService.createNode() method, I cannot see it immediately in the web client. When I restart the web app, I can see the new node.

davidc
Star Contributor
Star Contributor
There is a cache used by the repository server, so if you make changes outside of that process, they don't get picked up.  The remote interfaces allow outside modifications.

As for not seeing content in the web-client (even after re-start), this is possibly due to creating a type other than cm:content.  The Web Client only shows this type (or sub-type) in the browse views.