\Barn2\Plugin\WC_Product_TableTable_Cache

Handles the caching for product tables.

There are 2 types of caching used:

  • Table caching: this is used for lazy load tables where we need to initially create the table, then later fetch the table by ID to fetch the actual products.
  • Data caching: this is used to cache the data in a table, and is enabled or disabled using the 'cache' option in the shortcode, or from the plugin settings.

Summary

Methods
Properties
Constants
__construct()
get_table()
add_table()
update_table()
get_data()
update_data()
delete_data()
$id
$args
$query
TABLE_CACHE_EXPIRY
No protected methods found
No protected properties found
N/A
table_caching_enabled()
data_caching_enabled()
get_table_cache_key()
get_data_cache_key()
cache_contains_legacy_data()
is_legacy_hidden_column()
No private properties found
N/A

Constants

TABLE_CACHE_EXPIRY

TABLE_CACHE_EXPIRY =DAY_IN_SECONDS

Properties

$id

$id :

Type

$args

$args :

Type

$query

$query :

Type

Methods

get_table()

get_table(  $id)

Parameters

$id

add_table()

add_table()

update_table()

update_table(  $update_totals = false)

Parameters

$update_totals

get_data()

get_data()

update_data()

update_data(  $data)

Parameters

$data

delete_data()

delete_data()

table_caching_enabled()

table_caching_enabled()

data_caching_enabled()

data_caching_enabled()

get_table_cache_key()

get_table_cache_key()

get_data_cache_key()

get_data_cache_key()

cache_contains_legacy_data()

cache_contains_legacy_data(  $data)

Parameters

$data

is_legacy_hidden_column()

is_legacy_hidden_column(  $column)

Parameters

$column