Skip to content

Instantly share code, notes, and snippets.

@klhall1987
Created October 27, 2015 13:34
Show Gist options
  • Save klhall1987/db2e65787c792ec206c6 to your computer and use it in GitHub Desktop.
Save klhall1987/db2e65787c792ec206c6 to your computer and use it in GitHub Desktop.
Setting Transient
set_transient( $transient , $value , $expiration);
$transient //This is a string that will be used as a unique identifier for your cached data. It must be less than 45 characters.
$value //This will be an array, object, or variable you wish to cache.
$expiration //An integer of the maximum of seconds to keep the data before expiring.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment