• Resolved Matt Pramschufer

    (@mattpramschufer)


    Hello, was curious if there was a filter for the url that is set in https://s3.amazonaws.com/pramadillo/pramadillo-2024-06-04-10-22-58.jpg

    The issue we are having is when the user logs in to view protected content the page is still cached in their browser for them until they refresh. I would like to append a query string to that url via a filter something like

    add_filter('ppress_ec_redirect_url', function($url){
    	return $url.'?cb='.time();
    });

    Is there some filter like that available?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Collins Agbonghama

    (@collizo4sky)

    Unfortunately, there isn’t. A solution would be to exclude all protected content and pages from server/object cache. If you are using a cache plugin, excluded them in the plugin.

    Thread Starter Matt Pramschufer

    (@mattpramschufer)

    Hey @collizo4sky just in case anyone else might be looking for this solution. I looked through your code and was able to achieve this easily with the following code.

    add_filter('ppress_core_login_redirect', function($url){
    	return esc_url( add_query_arg( 'cb', time(), $url ) );
    });

    Would there be any ramifications on this approach? I have tested and it works perfectly.

    Plugin Author Collins Agbonghama

    (@collizo4sky)

    No ramification. Good job.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.