only using cache-first logic if caching features
This commit is contained in:
parent
1ecdba1965
commit
8b66c34eca
1 changed files with 11 additions and 4 deletions
|
@ -273,6 +273,8 @@ private:
|
|||
|
||||
// process features
|
||||
featureset_ptr fs;
|
||||
if (cache_features)
|
||||
{
|
||||
if (first)
|
||||
{
|
||||
first = false;
|
||||
|
@ -282,6 +284,11 @@ private:
|
|||
{
|
||||
fs = cache.features(q);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
fs = ds->features(q);
|
||||
}
|
||||
|
||||
if (fs)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue