May 2017
Beginner to intermediate
536 pages
14h 25m
English
A WordPress transient API caters to the limitations of the caching functions by providing a database-level cache for temporary time intervals. Compared to caching, transients are used by many developers for working with large web applications. Transient functions work in a manner similar to caching functions, where we have functions for settings and getting transient values. An example usage of transients is illustrated in the following code:
set_transient( $transient, $value, $expiration ); get_transient( $transient );
The syntax of the transient functions is similar to the caching function with the exception of the group parameter. Each and every transient value will be stored in the wp_options table as a single row. The following ...
Read now
Unlock full access