Created
May 1, 2013 11:23
-
-
Save jdlrobson/5494801 to your computer and use it in GitHub Desktop.
check cached pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#usage ./scripts/cachedpage.sh 1bd5bc53ebb04fff7f508712a29fdf1f1d7fe14f | |
#must be run an a branch with no stashed changes | |
#git stash - only do this if local changes | |
cur_branch=`git rev-parse --abbrev-ref HEAD` | |
# fIXME: if current branch is HEAD then create a tmp branch here and set it to cur_branch... | |
git checkout $1 #go to last known deployed commit | |
wget http://localhost/w/index.php/Main_Page -O cached.html | |
wget http://localhost/w/index.php/Special:MobileOptions -O cached_special.html | |
git checkout $cur_branch | |
open http://localhost/w/extensions/MobileFrontend/cached.html | |
open http://localhost/w/extensions/MobileFrontend/cached_special.html | |
#git stash pop #only when there were stashed changes... | |
unset cur_branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment