GRAYBYTE WORDPRESS FILE MANAGER1164

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/chahida.co.in/wp-content/plugins/woocommerce/src/Admin/API/Reports/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/chahida.co.in/wp-content/plugins/woocommerce/src/Admin/API/Reports//Cache.php
<?php
/**
 * REST API Reports Cache.
 *
 * Handles report data object caching.
 */

namespace Automattic\WooCommerce\Admin\API\Reports;

defined( 'ABSPATH' ) || exit;

/**
 * REST API Reports Cache class.
 */
class Cache {
	/**
	 * Cache version. Used to invalidate all cached values.
	 */
	const VERSION_OPTION = 'woocommerce_reports';

	/**
	 * Invalidate cache.
	 */
	public static function invalidate() {
		\WC_Cache_Helper::get_transient_version( self::VERSION_OPTION, true );
	}

	/**
	 * Get cache version number.
	 *
	 * @return string
	 */
	public static function get_version() {
		$version = \WC_Cache_Helper::get_transient_version( self::VERSION_OPTION );

		return $version;
	}

	/**
	 * Get cached value.
	 *
	 * @param string $key Cache key.
	 * @return mixed
	 */
	public static function get( $key ) {
		$transient_version = self::get_version();
		$transient_value   = get_transient( $key );

		if (
			isset( $transient_value['value'], $transient_value['version'] ) &&
			$transient_value['version'] === $transient_version
		) {
			return $transient_value['value'];
		}

		return false;
	}

	/**
	 * Update cached value.
	 *
	 * @param string $key   Cache key.
	 * @param mixed  $value New value.
	 * @return bool
	 */
	public static function set( $key, $value ) {
		$transient_version = self::get_version();
		$transient_value   = array(
			'version' => $transient_version,
			'value'   => $value,
		);

		$result = set_transient( $key, $transient_value, WEEK_IN_SECONDS );

		return $result;
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Categories
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Coupons
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Customers
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Downloads
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Export
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Import
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Orders
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
PerformanceIndicators
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Products
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Revenue
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Stock
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Taxes
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Variations
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:19
giriqfky / giriqfky
0644
Cache.php
1.479 KB
July 06 2022 00:23:10
giriqfky / giriqfky
0644
Controller.php
6.634 KB
November 14 2024 01:17:00
giriqfky / giriqfky
0644
DataStore.php
54.663 KB
August 27 2024 23:04:44
giriqfky / giriqfky
0644
DataStoreInterface.php
0.392 KB
April 20 2022 06:50:54
giriqfky / giriqfky
0644
ExportableInterface.php
0.609 KB
April 20 2022 06:50:54
giriqfky / giriqfky
0644
ExportableTraits.php
0.609 KB
April 20 2022 06:50:54
giriqfky / giriqfky
0644
FilteredGetDataTrait.php
1.552 KB
August 27 2024 23:04:44
giriqfky / giriqfky
0644
GenericController.php
9.882 KB
September 23 2024 20:44:04
giriqfky / giriqfky
0644
GenericQuery.php
2.573 KB
August 27 2024 23:04:44
giriqfky / giriqfky
0644
GenericStatsController.php
7.994 KB
May 12 2025 21:07:28
giriqfky / giriqfky
0644
OrderAwareControllerTrait.php
3.735 KB
May 12 2025 21:07:28
giriqfky / giriqfky
0644
ParameterException.php
0.318 KB
April 20 2022 06:50:54
giriqfky / giriqfky
0644
Query.php
1.412 KB
September 23 2024 20:44:04
giriqfky / giriqfky
0644
Segmenter.php
25.42 KB
January 21 2025 18:53:44
giriqfky / giriqfky
0644
SqlQuery.php
5.154 KB
January 25 2023 03:19:12
giriqfky / giriqfky
0644
StatsDataStoreTrait.php
4.757 KB
September 23 2024 20:44:04
giriqfky / giriqfky
0644
TimeInterval.php
23.472 KB
February 27 2024 18:59:46
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF