atpCustom Reference

kinsta_cache

Kinsta Cache API

Tags
category

WordPress Plugin

author

Kevin Burkholder KBurkholder@EarthAsylum.com

version
25.0527.1

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_RESULT_LOG

public bool KINSTA_RESULT_LOG = true

log results (eacDoojigger / Query Montor)

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.

Search results