Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2_Queries.php |
— | — | @@ -386,8 +386,8 @@ |
387 | 387 | ///non-existing concept pages which is probably the main reason for finding nothing here |
388 | 388 | } else { |
389 | 389 | global $smwgQConceptCaching, $smwgQMaxSize, $smwgQMaxDepth, $smwgQFeatures, $smwgQConceptCacheLifetime; |
390 | | - $may_be_computed = ($smwgQConceptCaching == 2) || |
391 | | - ( ($smwgQConceptCaching == 1) && ( (~(~($row->concept_features+0) | $smwgQFeatures)) == 0) && |
| 390 | + $may_be_computed = ($smwgQConceptCaching == CONCEPT_CACHE_NONE) || |
| 391 | + ( ($smwgQConceptCaching == CONCEPT_CACHE_HARD) && ( (~(~($row->concept_features+0) | $smwgQFeatures)) == 0) && |
392 | 392 | ($smwgQMaxSize >= $row->concept_size) && ($smwgQMaxDepth >= $row->concept_depth)); |
393 | 393 | if ($row->cache_date && |
394 | 394 | ($row->cache_date > (strtotime("now") - $smwgQConceptCacheLifetime*60) || |