• Resolved realasim

    (@realasim)


    I have a page with Ultimate Members plugin, while testing roles updates, I noticed that when I update a role it does get updated but on every page refresh a cached version of info is presented caused by database caching, I tried adding said page to exclusions but it doesn’t help, only if I use a new browser (or new incognito mode tab) or update the code, I get the latest data from database,

    Already tried ‘Empty cache and Hard reload’, browser caching is not the issue, disabling Litespeed Cache does solve the problem but I want to keep it, also there is no option to disable database caching only or something like excluding a particular table from getting cached. Please help

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter realasim

    (@realasim)

    I found that doing

    do_action('litespeed_purge_url', $_SERVER['REQUEST_URI']);

    after I update a role fixes the problem, not sure about the performance impact, feels bad, not sure anymore

    Plugin Support qtwrk

    (@qtwrk)

    our plugin does not cache database , object cache might do a bit , but for membership kind of site , it is typical that you need to hook purge api somewhere when user update a profile or something similar to reflect the change.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Database Cache on Page Reload’ is closed to new replies.