Page tree
Skip to end of metadata
Go to start of metadata

 

Description

This function attempts to repair yum cache issues. 

Examples 


 JSON API
https://hostname.example.com:2087/cpsess##########/json-api/package_manager_fixcache?api.version=1
 XML API
https://hostname.example.com:2087/cpsess##########/xml-api/package_manager_fixcache?api.version=1
 Command Line
whmapi1 package_manager_fixcache

Notes:

  • You must URI-encode values.
  • For more information and additional output options, read our Guide to WHM API 1 documentation or run the whmapi1 --help command. 
  • We introduced this functionality in cPanel & WHM version 11.52.0.8.

 Output (JSON)
{
   "metadata":{
      "reason":"OK",
      "command":"package_manager_fixcache",
      "result":1,
      "version":1
   },
   "data":{
      "cache_seems_ok_now":1
   }
}
 Output (XML)
<result>
    <data>
        <cache_seems_ok_now>1</cache_seems_ok_now>
      </data>
    <metadata>
        <version>1</version>
        <reason>OK</reason>
        <command>package_manager_fixcache</command>
        <result>1</result>
    </metadata>
</result>

Note:

Use WHM's API Shell interface (Home >> Development >> API Shell) to directly test WHM API calls.

   

Parameters

This function does not accept parameters.

 

Returns

ReturnTypeDescriptionPossible valuesExample
cache_seems_ok_nowBoolean

Whether the system resolved the current error.

Note:

The function only returns this value if the function succeeds.

  • 1 — Resolved.

Note:

If the function fails, it only returns metadata.

1