mirror of
https://github.com/pronamic/woocommerce-subscriptions.git
synced 2025-10-13 21:02:55 +00:00
Updates to 7.5.0
This commit is contained in:
43
includes/core/interfaces/interface-wcs-cache-updater.php
Normal file
43
includes/core/interfaces/interface-wcs-cache-updater.php
Normal 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();
|
||||
}
|
Reference in New Issue
Block a user