title: Couchbase View not update immediately?
body: <p>I just follow this <a href="http://nitschinger.at/Using-Couchbase-as-a-flexible-session-store" rel="nofollow noreferrer">post</a> to test Couchbase View.When edit view use Couchbase GUI and save,the view didn't update immediately.</p>
  <p>For example.With php scripts store some array to Couchbase.And define a named 'last' view in 'dev_sessions' document:</p>
  <pre><code>function (doc) {
  if(doc.namespace == 'sessions') {
  emit(doc.lastSeen, 1);
  }
  }
  </code></pre>
  <p>Then use curl to get the json result.
  First time:</p>
  <pre><code>$ curl
  http://192.168.228.134:8092/default/_design/dev_sessions/_view/last/?group_level=1&amp;reduce=true'
  {&quot;rows&quot;:[ ] }
  </code></pre>
  <p>Second:</p>
  <pre><code>$ curl 'http://192.168.228.134:8092/default/_design/dev_sessions/_view/last/?group_level=1&amp;reduce=true'
  {&quot;rows&quot;:[
  {&quot;key&quot;:1352872218,&quot;value&quot;:1},
  {&quot;key&quot;:1352879418,&quot;value&quot;:3}
  ]
  }
  </code></pre>
  <p>Another test,add a new array in php scripts:</p>
  <pre><code>'eb255262434407766f212d1b6f23' =&gt; array(
  'namespace' =&gt; 'sessions',
  &quot;type&quot; =&gt; &quot;user&quot;,
  &quot;userID&quot; =&gt; &quot;1107&quot;,
  'lastSeen' =&gt; time(),
  'firstSeen' =&gt; time(),
  &quot;remoteAddress&quot; =&gt; &quot;2.3.4.5&quot;,
  &quot;location&quot; =&gt; &quot;Vienna/Austria&quot;,
  &quot;name&quot; =&gt; &quot;Golden K&quot;
  </code></pre>
  <p>Run curl again,first time:</p>
  <pre><code>$ curl 'http://192.168.228.134:8092/default/_design/dev_sessions/_view/last/?group_level=1&amp;reduce=true'
  {&quot;rows&quot;:[
  {&quot;key&quot;:1352872218,&quot;value&quot;:1},
  {&quot;key&quot;:1352879418,&quot;value&quot;:3}
  ]
  }
  </code></pre>
  <p>Second time:</p>
  <pre><code>$ curl 'http://192.168.228.134:8092/default/_design/dev_sessions/_view/last/?group_level=1&amp;reduce=true'
  {&quot;rows&quot;:[
  {&quot;key&quot;:1352875163,&quot;value&quot;:1},
  {&quot;key&quot;:1352882363,&quot;value&quot;:4}
  ]
  }
  </code></pre>
  <p>If changed data or view script,click <code>Views - 'Show Results'</code> button in Couchbase GUI,the first &amp; second time does different.
  Why View not update immediately?</p>