Robert Vogel has uploaded a new change for review.

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

Change subject: WIP: Improve ExtJS RL module caching
......................................................................

WIP: Improve ExtJS RL module caching

At the moment the ExtJS-RL module gets transferred on every page load.
No clientside caching. This needs to be fixed.

Change-Id: I14539fc990b95b26473e7aae299806e5ad5a270e
---
M includes/resourceloader/ResourceLoaderExtJSModule.php
M resources/Resources.php
2 files changed, 11 insertions(+), 4 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceFoundation 
refs/changes/84/255084/1

diff --git a/includes/resourceloader/ResourceLoaderExtJSModule.php 
b/includes/resourceloader/ResourceLoaderExtJSModule.php
index 00e3be3..64f1075 100644
--- a/includes/resourceloader/ResourceLoaderExtJSModule.php
+++ b/includes/resourceloader/ResourceLoaderExtJSModule.php
@@ -34,6 +34,10 @@
                );
        }
 
+       public function getGroup() {
+               return 'bsextjs';
+       }
+
        /**
         * 
https://www.mediawiki.org/wiki/Manual:Language#/media/File:MediaWiki_fallback_chains.svg
         * @return array
diff --git a/resources/Resources.php b/resources/Resources.php
index 853f52c..e365aa8 100644
--- a/resources/Resources.php
+++ b/resources/Resources.php
@@ -53,7 +53,7 @@
 ) + $aResourceModuleTemplate;
 
 $wgResourceModules['ext.bluespice.extjs.base'] = array(
-       'class' => 'ResourceLoaderExtJSModule' //Provides framesork JS and I18N
+       'class' => 'ResourceLoaderExtJSModule' //Provides framework JS and I18N
 ) + $aResourceModuleTemplate;
 
 //TODO: Implement as subclass of ResourceLoaderFileModule to provide RTL 
support
@@ -73,7 +73,8 @@
                //If we didn't have it this way we would need to specify a 
seperate
                //'scripts' RL module for the theme.
                'ext.bluespice.extjs.base'
-       )
+       ),
+       'group' => 'bsextjs'
 ) + $aResourceModuleTemplate;
 
 $wgResourceModules['ext.bluespice.extjs.theme.ux'] = array(
@@ -86,7 +87,8 @@
                'bluespice.extjs/Ext.ux/grid/css/GridFilters.css',
                'bluespice.extjs/Ext.ux/grid/css/RangeMenu.css',
                'bluespice.extjs/Ext.ux/form/field/BoxSelect.css'
-       )
+       ),
+       'group' => 'bsextjs'
 ) + $aResourceModuleTemplate;
 
 $wgResourceModules['ext.bluespice.extjs'] = array(
@@ -143,7 +145,8 @@
        'dependencies' => array(
                'ext.bluespice.extjs.theme.ux',
                'ext.bluespice.extjs.theme'
-       )
+       ),
+       'group' => 'bsextjs'
 ) + $aResourceModuleTemplate;
 
 $wgResourceModules['ext.bluespice.extjs.BS.portal'] = array(

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I14539fc990b95b26473e7aae299806e5ad5a270e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: master
Gerrit-Owner: Robert Vogel <[email protected]>

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

Reply via email to