Title: WP-Optimize cache problem with sp_redirect
Last modified: February 9, 2023

---

# WP-Optimize cache problem with sp_redirect

 *  Resolved [yanping](https://wordpress.org/support/users/yanping/)
 * (@yanping)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/wp-optimize-cache-problem-with-sp_redirect/)
 * WP-Optimize cache function doesn’t seem to be able to handle the redirect . Anyone
   else experiencing the same problem? Thanks

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

 *  Plugin Support [vupdraft](https://wordpress.org/support/users/vupdraft/)
 * (@vupdraft)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/wp-optimize-cache-problem-with-sp_redirect/#post-16460599)
 * We haven’t had any other reports of this.
 * Is this a new issue, where there any changes on the site that precipitated this?
 *  Thread Starter [yanping](https://wordpress.org/support/users/yanping/)
 * (@yanping)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/wp-optimize-cache-problem-with-sp_redirect/#post-16461644)
 * i can not be sure but we noticed the problem after updating to WordPress 6. It
   was in a customized woocommerce category page where wp_redirect is used for certain
   categories. I turned off wp-optimize cache for these categories for now. I also
   tried html redirect instead of wp_redirect and it worked but I don’t like the
   browser flashing.
 *  Plugin Support [vupdraft](https://wordpress.org/support/users/vupdraft/)
 * (@vupdraft)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/wp-optimize-cache-problem-with-sp_redirect/#post-16467351)
 * Behaviours that rely on PHP processing, such as redirection will not work while
   page caching is active. This is because your site will serve up static HTML pages
   for cached pages directly that bypass PHP so things can be as fast as possible.

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

The topic ‘WP-Optimize cache problem with sp_redirect’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [vupdraft](https://wordpress.org/support/users/vupdraft/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/wp-optimize-cache-problem-with-sp_redirect/#post-16467351)
 * Status: resolved