add cache-table for character data instead of using database view (solves issue #324)
This commit is contained in:
parent
63c4e7c016
commit
b09d4abc06
6 changed files with 233 additions and 106 deletions
|
|
@ -25,7 +25,7 @@
|
|||
*
|
||||
* @var array
|
||||
*/
|
||||
public $models = array('characters', 'quests', 'questgroups', 'achievements', 'charactergroups', 'avatars', 'media');
|
||||
public $models = array('characters', 'quests', 'questgroups', 'achievements', 'charactergroups', 'avatars', 'media', 'xplevels');
|
||||
|
||||
|
||||
|
||||
|
|
@ -49,7 +49,7 @@
|
|||
if(is_null($character)) {
|
||||
return;
|
||||
}
|
||||
$character['xplevel'] = $this->Characters->getXPLevelOfCharacters($character['id']);
|
||||
$character['xplevel'] = $this->Xplevels->getXPLevelById($character['xplevel_id']);
|
||||
$character['rank'] = $this->Characters->getXPRank($seminary['id'], $character['xps']);
|
||||
|
||||
// Get “last” Quest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue