Description

This function generates a random integer (the CacheBuster ID).

 Use this ID to work with and around a browser's caching mechanism.

Examples 


https://hostname.example.com:2083/cpsess##########/execute/CacheBuster/update

$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
 
// Generate a new CacheBuster ID and return it.
$whoyagonnacall = $cpanel->uapi(
    'CacheBuster', 'update'
);

 

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
 
# Generate a new CacheBuster ID and return it.
my $whoyagonnacall = $cpliveapi->uapi(
    'CacheBuster', 'update'
);

 

<!--  Generate a new CacheBuster ID and return it. -->
[% data = execute( 'CacheBuster', 'update' ); %]

 

uapi --user=username CacheBuster update

{
  "messages": null,
  "errors": null,
  "status": 1,
  "metadata": {
    
  },
  "data": {
    "cache_id": "11381138"
  }
}

   

Parameters

This function does not accept parameters.

Returns

ReturnTypeDescriptionPossible valuesExample
cache_idintegerA random integer that the system uses to work with and around a browser's caching mechanism.An eight-digit integer.11381138