Created
December 12, 2016 15:27
-
-
Save Tabrisrp/b0879474331fe91fa203f257845f60f3 to your computer and use it in GitHub Desktop.
Disable cache for admin
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
if ( current_user_can( 'administrator' ) ) { | |
define( 'DONOTCACHEPAGE', true ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment