The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    1
    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 cPanel Product Owner
    Staff Member

    Joined:
    Apr 29, 2005
    Messages:
    417
    Likes Received:
    1
    Trophy Points:
    18
    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.
     
  3. leefrom

    leefrom Active Member

    Joined:
    May 27, 2008
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    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