jenkins-bot has submitted this change and it was merged.

Change subject: (Bug 47927) $concept->getCacheStatus()
......................................................................


(Bug 47927) $concept->getCacheStatus()

Instead of === 'full' do !== 'full'

Change-Id: I5a431e6cfa8d476ed0aab1550899473c5e51044a
---
M maintenance/SMW_conceptCache.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Mwjames: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/maintenance/SMW_conceptCache.php b/maintenance/SMW_conceptCache.php
index 75e8f50..26240cd 100644
--- a/maintenance/SMW_conceptCache.php
+++ b/maintenance/SMW_conceptCache.php
@@ -147,7 +147,7 @@
 
        if ( $concept === null ) {
                $skip = 'page not cachable (no concept description, maybe a 
redirect)';
-       } elseif ( ( $select_update ) && ( $concept->getCacheStatus() === 
'full' ) ) {
+       } elseif ( ( $select_update ) && ( $concept->getCacheStatus() !== 
'full' ) ) {
                $skip = 'page not cached yet';
        } elseif ( ( $select_old ) && ( $concept->getCacheStatus() === 'full' ) 
&& ( $concept->getCacheDate() > ( strtotime( 'now' ) - $select_old * 60 ) ) ) {
                $skip = 'cache is not old yet';

-- 
To view, visit https://gerrit.wikimedia.org/r/61774
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I5a431e6cfa8d476ed0aab1550899473c5e51044a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticMediaWiki
Gerrit-Branch: master
Gerrit-Owner: Mwjames <[email protected]>
Gerrit-Reviewer: Mwjames <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to