Title: Filter for Cache Busting?
Last modified: June 4, 2024

---

# Filter for Cache Busting?

 *  Resolved [Matt Pramschufer](https://wordpress.org/support/users/mattpramschufer/)
 * (@mattpramschufer)
 * [2 years ago](https://wordpress.org/support/topic/filter-for-cache-busting/)
 * 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](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
 *     ```wp-block-code
       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](https://wordpress.org/support/users/collizo4sky/)
 * (@collizo4sky)
 * [2 years ago](https://wordpress.org/support/topic/filter-for-cache-busting/#post-17802455)
 * 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](https://wordpress.org/support/users/mattpramschufer/)
 * (@mattpramschufer)
 * [2 years ago](https://wordpress.org/support/topic/filter-for-cache-busting/#post-17804117)
 * Hey [@collizo4sky](https://wordpress.org/support/users/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.
 *     ```wp-block-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](https://wordpress.org/support/users/collizo4sky/)
 * (@collizo4sky)
 * [2 years ago](https://wordpress.org/support/topic/filter-for-cache-busting/#post-17806611)
 * No ramification. Good job.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Filter for Cache Busting?’ is closed to new replies.

 * ![](https://ps.w.org/wp-user-avatar/assets/icon-256x256.png?rev=2532486)
 * [Paid Membership Plugin, Ecommerce, User Registration Form, Login Form, User Profile & Restrict Content – ProfilePress](https://wordpress.org/plugins/wp-user-avatar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-user-avatar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-user-avatar/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-user-avatar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-user-avatar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-user-avatar/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Collins Agbonghama](https://wordpress.org/support/users/collizo4sky/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/filter-for-cache-busting/#post-17806611)
 * Status: resolved