Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Need a function to clear cPanel cache.

Discussion in 'cPanel Developers' started by testpgm, Jul 23, 2010.

  1. testpgm

    testpgm Member

    Joined:
    May 25, 2010
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    51
    Hello....

    I want to know whether there is any function in xml api for clearing the cPanel cache. Please tell how can I create a code for clearing the cPanel or WHM cache in a period of time.

    Please help.
     
  2. MattDees

    MattDees Well-Known Member

    Joined:
    Apr 29, 2005
    Messages:
    416
    Likes Received:
    1
    Trophy Points:
    243
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    cPanel has quite a few caches so I'm curious what in specific you are needing to clear and why.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. leefrom

    leefrom Active Member

    Joined:
    May 27, 2008
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    56
    I would suggest that if you find yourself wanting to clear a cache, it's probably because you're doing something manually (such as editing a configuration) file, instead of using the cpanel API to do it.

    If there is an API function to do what you need, always use it first, before editing a file with your code. This will ensure that any caches are updated automatically :)
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice