I've inherited a project to bring a very old SugarCE site up to current. I have an issue where a custom detail view (\custom\modules\Accounts\metadata\detailviewdefs. php) has logic that determines what panels should display based on what the account_type that is being viewed is.
The problem I am having is that whichever type account is first displayed after I do a 'repair' is cached, causing the logic to be bypassed, and all subsequent accounts use the same panel information as the first cached call.
I've tried various ways to invoke clearCache() in \custom\modules\Accounts\views\view.detail.php, but I can't find the correct syntax to execute the method.
Display() in view.detail ends with
echo $this->dv->display();
..but the examples I have seen are more like
function display() {
//clear detailview cache
$this->th2 = new TemplateHandler();
$this->th2->clearCache($this->module);
parent::display();
}
..and I'm not sure how to combine the two.
Any suggestions?


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks