Mondrian架构缓存控制

时间:2014-01-31 12:34:22

标签: caching pentaho business-intelligence cache-control mondrian

我无法清除BI服务器上的Mondrian架构缓存。我去 工具 - > 刷新 - > Mondrian缓存。但 clear_mondrian_schema_cache.xaction 似乎没有清除缓存。

我需要在源数据更改时更新结果,但每次发出查询时,我似乎都会继续获得缓存结果。

有人可以帮助我使用API​​来启用定期架构缓存刷新吗?

1 个答案:

答案 0 :(得分:1)

我使用以下bash脚本。这很好地没有任何API faff :)。 它相当于在控制台中单击tools > refresh > mondrian cache

变量schema是您在架构工作台应用程序中看到的架构的名称

#!bin/bash
#
# script to clean pentaho cache

user=XXX
pass=XXX
host=localhost
schema=Reporting%20schemas

wget --no-check-certificate http://${host}:2310/pentaho/content/analyzer/ajax/clearCache?catalog=${schema}\&userid=${user}\&password=${pass}

归功于pentaho支持