cPanel/NginxCaching
cPanel module

NginxCaching

4 functions, invoked through the cpanel_uapi tool.

scope cpanel:uapi
Call any function with cpanel_uapi(service_id, module="NginxCaching", function, params). Live availability depends on the cPanel features JetHost has enabled on your account — call list_cpanel_operations to see what is active.

clear_cache GET#

Delete NGINX cache contents.

This function clears the user's NGINX cache.

Note:

  • You can only use this function if you installed the ea-nginx package.

No parameters.

Response — normalized as { ok, data, errors[], warnings[] }; data contains:

Payload varies by call.

disable_cache GET#

Disable the user's NGINX cache

This function disables the user's NGINX cache.

Note:

  • You can only use this function if you installed the ea-nginx package.

No parameters.

Response — normalized as { ok, data, errors[], warnings[] }; data contains:

Payload varies by call.

enable_cache GET#

Enable the user's NGINX cache

This function enables the user's NGINX cache.

Note:

  • You can only use this function if you installed the ea-nginx package.

No parameters.

Response — normalized as { ok, data, errors[], warnings[] }; data contains:

Payload varies by call.

reset_cache_config GET#

Reset the user's NGINX cache configuration

This function resets the user's NGINX caching configuration.

Note:

  • You can only use this function if you installed the ea-nginx package.

No parameters.

Response — normalized as { ok, data, errors[], warnings[] }; data contains:

Payload varies by call.