kinsta_cache
in
Kinsta Cache API
Tags
Table of Contents
- KINSTA_LOCAL = true
- KINSTA_REMOTE_URL = 'https://api.kinsta.com/v2/'
- KINSTA_RESULT_LOG = true
- KINSTA_RESULT_NOTIFY = true
- TRANSIENT_TTL_GET = DAY_IN_SECONDS
- TRANSIENT_TTL_POST = MINUTE_IN_SECONDS * 2.5
Constants
KINSTA_LOCAL
public
bool
KINSTA_LOCAL
= true
use local (true) or remote (false) endpoint for site & cdn cache api. local endpoint is the same as the offcial Kinsta plugin and offers no operation check, remote uses the documented api and provides operation_id for follow-up check. edge-cache has no local endpoint.
KINSTA_REMOTE_URL
public
string
KINSTA_REMOTE_URL
= 'https://api.kinsta.com/v2/'
kinsta api url
KINSTA_RESULT_LOG
public
bool
KINSTA_RESULT_LOG
= true
log results (eacDoojigger / Query Montor)
KINSTA_RESULT_NOTIFY
public
bool
KINSTA_RESULT_NOTIFY
= true
display wp_admin_notice
TRANSIENT_TTL_GET
public
int|bool
TRANSIENT_TTL_GET
= DAY_IN_SECONDS
cache time-to-live of GET results GET requests retrieve relatively static data.
TRANSIENT_TTL_POST
public
int|bool
TRANSIENT_TTL_POST
= MINUTE_IN_SECONDS * 2.5
cache time-to-live of POST results POST requests perform dynamic actions. this is used to prevent repeated actions and to schedule check operation events.