Jdlrobson has uploaded a new change for review.
https://gerrit.wikimedia.org/r/62185
Change subject: Cachedpage.sh adjustments
......................................................................
Cachedpage.sh adjustments
* Special pages are not effected by html caching so do not bother generate
a special cached page
* Allow developer to provide a different article other than Main Page via
MEDIA_WIKI_TEST_PAGE variable
Change-Id: I7f08008a029506844e6c85a99bc8faf889b1adc6
---
M scripts/cachedpage.sh
1 file changed, 3 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend
refs/changes/85/62185/1
diff --git a/scripts/cachedpage.sh b/scripts/cachedpage.sh
index 638de95..b297df1 100755
--- a/scripts/cachedpage.sh
+++ b/scripts/cachedpage.sh
@@ -22,21 +22,20 @@
#Generate the 'cached' pages
mkdir -p tmp
URL=${MEDIAWIKI_URL:-"http://127.0.0.1:80"}
+TITLE=${MEDIA_WIKI_TEST_PAGE:="Main_Page"}
echo "Using $URL as a development environment host."
echo "To specify a different host set MEDIAWIKI_URL environment variable"
echo '(e.g. by running "export MEDIAWIKI_URL=http://localhost:8080/w")'
-wget "$URL/index.php/Main_Page?useformat=mobile" -O tmp/cached.html
-wget "$URL/index.php/Special:MobileOptions?useformat=mobile" -O
tmp/cached_special.html
+wget "$URL/index.php/$TITLE?useformat=mobile" -O tmp/cached.html
#Return to previous branch
git checkout $cur_branch
# Print location of urls
echo
-echo Cached pages generated at following locations
+echo Cached page generated at following locations
echo
echo \* $URL/extensions/MobileFrontend/tmp/cached.html
-echo \* $URL/extensions/MobileFrontend/tmp/cached_special.html
if [ $stashed_changes ]
then
--
To view, visit https://gerrit.wikimedia.org/r/62185
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7f08008a029506844e6c85a99bc8faf889b1adc6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits