Skip to content

Instantly share code, notes, and snippets.

@bayleedev
Created November 29, 2012 15:20
Show Gist options
  • Save bayleedev/4169748 to your computer and use it in GitHub Desktop.
Save bayleedev/4169748 to your computer and use it in GitHub Desktop.
# Clear the cache
alias .hb.remote.cc="ssh mdxdev '.hb.cc'"
function .hb.cc() {
# Directory
.hb
# CSS
if [ $(ls app/webroot/css/compiled/ | wc -l) -gt 0 ]
then
echo Ridding CSS
cd app/webroot/css/compiled/ && rm -f *.css
.hb
fi
# JS
if [ $(ls app/webroot/js/compiled/ | wc -l) -gt 0 ]
then
echo Ridding JS
cd app/webroot/js/compiled/ && rm -f *.js
.hb
fi
# Mongo
vagrant ssh -c "mongo vitals --eval 'printjson(db.wp_cache.drop())'"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment