Description

This function refreshes cPanel's cache of MySQL® information.

 The cache exists in the /var/cpanel/databases directory and includes users, databases, routines, and other related information..

Examples


$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$refresh_cache = $cpanel->api1('Mysql','initcache'); // Call the function.

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $refresh_cache = $cpliveapi->api1('Mysql','initcache'); # Call the function.

<cpanel Module="Mysql::initcache()">
cpapi1 --user=username Mysql initcache

This function does not return output.

Parameters

This function does not accept parameters.

Returns

This function does not return output.