Skip to content
Snippets Groups Projects
Commit 48d6da07 authored by aydreeihn's avatar aydreeihn Committed by JediKev
Browse files

Cache Children Tickets

Cache the results when getting children tickets.
parent 4e5cab99
Branches
Tags
No related merge requests found
......@@ -203,6 +203,7 @@ implements RestrictedAccess, Threadable, Searchable {
var $recipients;
var $lastrespondent;
var $lastuserrespondent;
var $_children;
function loadDynamicData($force=false) {
if (!isset($this->_answers) || $force) {
......@@ -236,7 +237,10 @@ implements RestrictedAccess, Threadable, Searchable {
}
function getChildren() {
return self::getChildTickets($this->getId());
if (!isset($this->_children))
$this->_children = self::getChildTickets($this->getId());
return $this->_children;
}
function getMergeTypeByFlag($flag) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment