mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Profiler/Caching
* redirect to search for subjects without cache, instead of hanging on an empty profile * todo: fix properly
This commit is contained in:
@@ -340,7 +340,7 @@ class ProfileListFilter extends Filter
|
||||
// table key differs between remote and local :<
|
||||
$k = $this->useLocalList ? 'p' : 'c';
|
||||
|
||||
// name [str] - the table is case sensitive. Since i down't want to destroy indizes, lets alter the search terms
|
||||
// name [str] - the table is case sensitive. Since i don't want to destroy indizes, lets alter the search terms
|
||||
if (!empty($_v['na']))
|
||||
{
|
||||
$lower = $this->modularizeString([$k.'.name'], Util::lower($_v['na']), !empty($_v['ex']) && $_v['ex'] == 'on', true);
|
||||
|
||||
@@ -243,11 +243,14 @@ class ProfilePage extends GenericPage
|
||||
$this->mode = CACHE_TYPE_NONE;
|
||||
|
||||
// queue full fetch
|
||||
$newId = Profiler::scheduleResync(Type::PROFILE, $this->realmId, $guid);
|
||||
|
||||
if ($newId = Profiler::scheduleResync(Type::PROFILE, $this->realmId, $guid))
|
||||
{
|
||||
$this->doResync = ['profile', $newId];
|
||||
$this->initialSync();
|
||||
}
|
||||
else // todo: base info should have been created in __construct .. why are we here..?
|
||||
header('Location: ?profiles='.$params[0].'.'.$params[1].'&filter=na='.Util::ucFirst($this->subjectName).';ex=on');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user