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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

modify_accounts script doesn't clear cache

Discussion in 'cPanel Developers' started by Haym, Aug 26, 2017.

  1. Haym

    Haym Active Member

    Joined:
    May 12, 2017
    Messages:
    28
    Likes Received:
    5
    Trophy Points:
    3
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Hello,

    If a user changes their style via the cPanel interface, the cache is busted and the new style takes effect immediately.

    However if we change a user's style using the modify_accounts script, a hard refresh is required to clear the cache. This script should also trigger a cache bust in whatever way the change style UI does, e.g. query string number increment.

    Currently we cannot use the modify_accounts script because it's ineffective when users are seeing cached files which are set to expire after 2 months.

    Thanks
     
  2. Haym

    Haym Active Member

    Joined:
    May 12, 2017
    Messages:
    28
    Likes Received:
    5
    Trophy Points:
    3
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Note that the UAPI function Styles::update does not have this problem, the cache is cleared properly using this method. However this of course requires the user to have the Styles feature enabled. So I would definitely consider this to be a bug in the modify_accounts script.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,165
    Likes Received:
    1,371
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I've opened internal case CPANEL-15499 to report this behavior. I'll monitor this case and update this thread with more information as it becomes available.

    Thank you.
     
Loading...

Share This Page