\Barn2\Plugin\Posts_Table_ProTable_Cache

Handles the caching for post 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 posts.
  • 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()
load_from_cache()
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()
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

load_from_cache()

load_from_cache(  $id)

Parameters

$id

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()