bust analysis ACPL cache in study chapters

This commit is contained in:
Thibault Duplessis 2018-03-10 22:11:21 -05:00
parent 7355c764ef
commit e1d27a0f2b

View file

@ -90,7 +90,8 @@ export function render(ctrl: AnalyseCtrl): MaybeVNode {
// don't cache until the analysis is complete!
const buster = ctrl.data.analysis.partial ? Math.random() : '';
const cacheKey = '' + buster + !!ctrl.retro;
let cacheKey = '' + buster + !!ctrl.retro;
if (ctrl.study) cacheKey += ctrl.study.data.chapter.id;
return thunk('div.advice_summary', doRender, [ctrl, cacheKey]);
}