[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: WpCacheEngine.php
<?php namespace Automattic\WooCommerce\Caching; /** * Implementation of CacheEngine that uses the built-in WordPress cache. */ class WpCacheEngine implements CacheEngine { public const CACHE_GROUP_NAME = 'wc-object-cache'; // phpcs:disable Squiz.Commenting.FunctionComment.Missing public function get_cached_object( string $key ) { $value = wp_cache_get( $key, self::CACHE_GROUP_NAME ); return false === $value ? null : $value; } public function cache_object( string $key, $object, int $expiration ): bool { return wp_cache_set( $key, $object, self::CACHE_GROUP_NAME, $expiration ); } public function delete_cached_object( string $key ): bool { return wp_cache_delete( $key, self::CACHE_GROUP_NAME ); } public function is_cached( string $key ): bool { return false !== wp_cache_get( $key, self::CACHE_GROUP_NAME ); } // phpcs:enable Squiz.Commenting.FunctionComment.Missing }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server.dijitaldukkanim.com.tr
Server IP: 104.247.168.220
PHP Version: 8.1.33
Server Software: Apache
System: Linux server.dijitaldukkanim.com.tr 4.18.0-553.105.1.el8_10.x86_64 #1 SMP Tue Feb 17 05:17:39 EST 2026 x86_64
HDD Total: 492.3 GB
HDD Free: 180.63 GB
Domains on IP: N/A (Requires external lookup)
System Features