[Mondrian] Member Cache flush

Hilario Fernandes hilario.fernandes at cortex-intelligence.com
Tue Sep 8 14:47:35 EDT 2015


I was trying out the fix made with issue
http://jira.pentaho.com/browse/MONDRIAN-2366 and found myself with a new
problem... For some reason when i execute the code in the issue to clear
the member cache for a specific cube, all the segments from other cubes get
removed.

this is the code:

RolapCube cube = schema.lookupCube(cubeName, false)
CacheControl cacheControl = con.getCacheControl(null)

cube.hierarchies.each{ RolapHierarchy hierarchy ->
     if(hierarchy.hasAll()) {

 cacheControl.flush(cacheControl.createMemberSet(hierarchy.getAllMember(),
true))
     }
}


Any idea why this happens?

-- 
Hilario Fernandes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pentaho.org/pipermail/mondrian/attachments/20150908/a8639193/attachment.html 


More information about the Mondrian mailing list