Updates to 7.5.0

This commit is contained in:
WooCommerce
2025-05-21 10:18:23 +00:00
parent c2175bfc37
commit 924e4d86bd
389 changed files with 7446 additions and 22486 deletions

View File

@@ -0,0 +1,43 @@
<?php
/**
* WCS_Cache_Updater Interface
*
* Define methods that can be reliably used to update a cache on an object.
*
* @author Prospress
* @category Admin
* @package WooCommerce Subscriptions/Admin
* @version 1.0.0 - Migrated from WooCommerce Subscriptions v2.3
* @since 1.0.0 - Migrated from WooCommerce Subscriptions v2.3
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
} // Exit if accessed directly
/**
* WCS_Cache_Updater Interface
*
* Define a set of methods that can be used to update a cache
*/
interface WCS_Cache_Updater {
/**
* Get the items to be updated, if any.
*
* @return array An array of items to update, or empty array if there are no items to update.
*/
public function get_items_to_update();
/**
* Update for a single item, of the form returned by get_items_to_update().
*
* @param mixed $item The item to update.
*/
public function update_items_cache( $item );
/**
* Clear all caches for all items.
*/
public function delete_all_caches();
}