Skip to content

Instantly share code, notes, and snippets.

jennimckinnon

Block or report user

Report or block jennimckinnon

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Clear Redis Cache
redis-cli flushall async
@jennimckinnon
jennimckinnon / Flush cache
Created Mar 16, 2020
WP-CLI command for an article.
View Flush cache
wp cache flush
@jennimckinnon
jennimckinnon / SSH command
Created Mar 16, 2020
Example command for an article.
View SSH command
cd ~/path/to/your-site
@jennimckinnon
jennimckinnon / defer.html
Created Jan 22, 2020
Basic defer example for an article.
View defer.html
<script defer src="/path/to/file/script.js">
</script>
@jennimckinnon
jennimckinnon / async.html
Created Jan 22, 2020
Basic async example for an article.
View async.html
<script async src="/path/to/file/script.js">
</script>
View functions.php
add_filter( 'auth_cookie_expiration', 'keep_me_logged_in_for_1_year' );
function keep_me_logged_in_for_1_year( $expirein ) {
return YEAR_IN_SECONDS; // 1 year in seconds
}
View wp-config.php
define('WP_HOME','http://your-site.com);
define('WP_SITEURL','http://your-site.com);
You can’t perform that action at this time.