<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I was looking at that code but I'm a bit confused...<div>if you call cacheControl.flush(CellRegion) it will only normalize and call&nbsp;<span class="Apple-style-span" style="font-family: Monaco; font-size: 11px; ">flushNonUnion(cellRegion); ...</span>and that one will throw an Exception</div><div><br></div><div>So where exactly is the cache flushed?</div><div><br></div><div>I can see the Test Cases, I just don't quite understand how it works</div><div><br></div><div>-Paul</div><div><br></div><div><br></div><div><div><div>On Feb 9, 2011, at 15:48 , Luc Boudreau wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Pedro,<br><br>I suggest reading the Mondrian Cache Control docs.<br><br><a href="http://mondrian.pentaho.com/documentation/cache_control.php">http://mondrian.pentaho.com/documentation/cache_control.php</a><br><br>Here's an example.<br>

<br><font style="font-family: courier new,monospace;" size="4"><code>Connection connection;<br>
        CacheControl cacheControl = connection.getCacheControl(null);<br>
        for (Cube cube : connection.getSchema().getCubes()) {<br>
&nbsp;&nbsp;&nbsp; cacheControl.flush(<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        cacheControl.createMeasuresRegion(cube));<br>
        }&nbsp; <br><br>Cheers!<br><br>Luc<br><br></code></font><br><div class="gmail_quote">On Wed, Feb 9, 2011 at 10:45 AM, Pedro Alves <span dir="ltr">&lt;<a href="mailto:pmgalves@gmail.com">pmgalves@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
<br>
Hey there.<br>
<br>
<br>
I've mostly been cleaning my mondrian cache on a daily basis, but there's a particular cube (or schema) who's etl will run hourly.<br>
<br>
<br>
How can I clean the cache for that cube only?<br>
<br>
<br>
Thanks<br>
<br>
_______________________________________________<br>
Mondrian mailing list<br>
<a href="mailto:Mondrian@pentaho.org" target="_blank">Mondrian@pentaho.org</a><br>
<a href="http://lists.pentaho.org/mailman/listinfo/mondrian" target="_blank">http://lists.pentaho.org/mailman/listinfo/mondrian</a><br>
</blockquote></div><br>
_______________________________________________<br>Mondrian mailing list<br><a href="mailto:Mondrian@pentaho.org">Mondrian@pentaho.org</a><br>http://lists.pentaho.org/mailman/listinfo/mondrian<br></blockquote></div><br></div></body></html>