• Resolved Rajon Ahmed

    (@engrrajonahmed)


    Hi there,
    I use Gravity Forms and Gravity Forms User Registration Addon to update user profile values from the frontend. But when a user updates their profile using Gravity Forms the values get updated in the backend but due to caching the values don’t get updated in the front-end. Then we have to clear the cache from the backend. The same is happening for the “Basic User Avatar” plugin. Avatar is not getting updated until we purge the cache.

    What can we do to fix it? We know this is a good feature but in this case, it’s really hard to purge the cache every time a user updates his/her profile.

    Thank you!
    – Rajon Ahmed

Viewing 1 replies (of 1 total)
  • Plugin Support qtwrk

    (@qtwrk)

    I assume you have enabled private cache for login user , otherwise login user won’t have cache

    in such case, the best way is to find a hook GF uses and fire a purge private cache

    please try this

    add_action( 'gform_user_updated', 'lscwp_private_purge', 10, 4 );
    
    function change_role( $user_id, $feed, $entry, $user_pass ) {
    if (defined('LSCWP_V')){
    do_action( 'litespeed_purge_private_all' );
    }
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Caching Issue’ is closed to new replies.