| Server IP : 104.21.74.147 / Your IP : 216.73.217.53 Web Server : nginx/1.24.0 System : Linux wordpress-sites 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/rebeccaone.com/wp-content/plugins/redis-cache/ |
Upload File : |
<?php
/**
* Plugin Name: Redis Object Cache
* Plugin URI: https://wordpress.org/plugins/redis-cache/
* Description: A persistent object cache backend powered by Redis. Supports Predis, PhpRedis, Relay, replication, sentinels, clustering and WP-CLI.
* Version: 2.8.0
* Text Domain: redis-cache
* Domain Path: /languages
* Network: true
* Requires PHP: 7.2
* Author: Till Krüss
* Author URI: https://objectcache.pro
* GitHub Plugin URI: https://github.com/rhubarbgroup/redis-cache
* Primary Branch: main
* License: GPLv3
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*
* @package RhubarbGroup/RedisCache
*/
defined( 'ABSPATH' ) || exit;
define( 'WP_REDIS_FILE', __FILE__ );
define( 'WP_REDIS_BASENAME', plugin_basename( WP_REDIS_FILE ) );
define( 'WP_REDIS_PLUGIN_DIR', plugin_dir_url( WP_REDIS_FILE ) );
if ( ! defined( 'WP_REDIS_PLUGIN_PATH' ) ) {
define( 'WP_REDIS_PLUGIN_PATH', __DIR__ );
}
$meta = get_file_data( WP_REDIS_FILE, [ 'Version' => 'Version' ] );
define( 'WP_REDIS_VERSION', $meta['Version'] );
require_once WP_REDIS_PLUGIN_PATH . '/includes/class-autoloader.php';
$autoloader = new Rhubarb\RedisCache\Autoloader();
$autoloader->register();
$autoloader->add_namespace( 'Rhubarb\RedisCache', WP_REDIS_PLUGIN_PATH . '/includes' );
if ( defined( 'WP_CLI' ) && WP_CLI && ! defined( 'RedisCachePro\Version' ) && ! defined( 'ObjectCachePro\Version' ) ) {
add_action(
'plugins_loaded',
function () {
WP_CLI::add_command( 'redis', Rhubarb\RedisCache\CLI\Commands::class );
}
);
}
register_activation_hook(
WP_REDIS_FILE,
[ Rhubarb\RedisCache\Plugin::class, 'on_activation' ]
);
Rhubarb\RedisCache\Plugin::instance();
if ( ! function_exists( 'redis_object_cache' ) ) {
/**
* Returns the plugin instance.
*
* @return Rhubarb\RedisCache\Plugin
*/
function redis_object_cache() {
return Rhubarb\RedisCache\Plugin::instance();
}
}