Smuggli has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/151830

Change subject: Fixed caching issue
......................................................................

Fixed caching issue

The page templates were cached per namepsace so if you try to create more
pages in a row you always would try to create the first page again and
again because the template links point to the first page which was cached

Change-Id: I9f76360d15cb7214295e6aa6f1e894d478c95832
---
M PageTemplates/PageTemplates.class.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtensions 
refs/changes/30/151830/1

diff --git a/PageTemplates/PageTemplates.class.php 
b/PageTemplates/PageTemplates.class.php
index c5780a4..dc642cf 100644
--- a/PageTemplates/PageTemplates.class.php
+++ b/PageTemplates/PageTemplates.class.php
@@ -197,7 +197,7 @@
                // if we are not on a wiki page, return. This is important when 
calling import scripts that try to create nonexistent pages, e.g. importImages
                if ( !is_object( $oTitle ) ) return true;
 
-               $sKey = BsCacheHelper::getCacheKey( 'BlueSpice', 
'PageTemplates', $oTitle->getNamespace() );
+               $sKey = BsCacheHelper::getCacheKey( 'BlueSpice', 
'PageTemplates', $oTitle->getPrefixedText() );
                $aData = BsCacheHelper::get( $sKey );
 
                $aRes = array();

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9f76360d15cb7214295e6aa6f1e894d478c95832
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: Smuggli <[email protected]>

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

Reply via email to