I have build an application using PostGIS, geoserver and openlayers2.12 and I am facing the following problem: When I add some data in my Postgis tables, geoserver doesn't get refreshed properly and the new data (lines and points) are not shown on the map. If I zoom in the map I get some parts of my new data (parts of lines and all the points). But when I zoom out I can not see anything. Also when I do "Layer Preview" I don't see the new geometries.
I tried to delete the cache of the layer and my browser..but no luck. What solves the problem is if I delete and then recreate the layer. Then everything its shown. But doing this I loose all my cache and the application becomes slow.
Any idea what It can cause this behavior?