Correct inline docs for cache.php. props ocean90. fixes #23058.
git-svn-id: http://core.svn.wordpress.org/trunk@23328 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
50ceba1323
commit
566dd6e476
|
@ -19,7 +19,7 @@
|
||||||
* @param mixed $data The data to add to the cache store
|
* @param mixed $data The data to add to the cache store
|
||||||
* @param string $group The group to add the cache to
|
* @param string $group The group to add the cache to
|
||||||
* @param int $expire When the cache data should be expired
|
* @param int $expire When the cache data should be expired
|
||||||
* @return unknown
|
* @return bool False if cache key and group already exist, true on success
|
||||||
*/
|
*/
|
||||||
function wp_cache_add($key, $data, $group = '', $expire = 0) {
|
function wp_cache_add($key, $data, $group = '', $expire = 0) {
|
||||||
global $wp_object_cache;
|
global $wp_object_cache;
|
||||||
|
@ -85,7 +85,7 @@ function wp_cache_delete($key, $group = '') {
|
||||||
* @uses $wp_object_cache Object Cache Class
|
* @uses $wp_object_cache Object Cache Class
|
||||||
* @see WP_Object_Cache::flush()
|
* @see WP_Object_Cache::flush()
|
||||||
*
|
*
|
||||||
* @return bool Always returns true
|
* @return bool False on failure, true on success
|
||||||
*/
|
*/
|
||||||
function wp_cache_flush() {
|
function wp_cache_flush() {
|
||||||
global $wp_object_cache;
|
global $wp_object_cache;
|
||||||
|
@ -152,7 +152,7 @@ function wp_cache_init() {
|
||||||
* @param mixed $data The contents to store in the cache
|
* @param mixed $data The contents to store in the cache
|
||||||
* @param string $group Where to group the cache contents
|
* @param string $group Where to group the cache contents
|
||||||
* @param int $expire When to expire the cache contents
|
* @param int $expire When to expire the cache contents
|
||||||
* @return bool False if cache key and group already exist, true on success
|
* @return bool False if not exists, true if contents were replaced
|
||||||
*/
|
*/
|
||||||
function wp_cache_replace($key, $data, $group = '', $expire = 0) {
|
function wp_cache_replace($key, $data, $group = '', $expire = 0) {
|
||||||
global $wp_object_cache;
|
global $wp_object_cache;
|
||||||
|
@ -171,7 +171,7 @@ function wp_cache_replace($key, $data, $group = '', $expire = 0) {
|
||||||
* @param mixed $data The contents to store in the cache
|
* @param mixed $data The contents to store in the cache
|
||||||
* @param string $group Where to group the cache contents
|
* @param string $group Where to group the cache contents
|
||||||
* @param int $expire When to expire the cache contents
|
* @param int $expire When to expire the cache contents
|
||||||
* @return bool False if cache key and group already exist, true on success
|
* @return bool False on failure, true on success
|
||||||
*/
|
*/
|
||||||
function wp_cache_set($key, $data, $group = '', $expire = 0) {
|
function wp_cache_set($key, $data, $group = '', $expire = 0) {
|
||||||
global $wp_object_cache;
|
global $wp_object_cache;
|
||||||
|
|
Loading…
Reference in New Issue