wc_get_template_part returning null when WP Redis is enabled
-
We have enabled Redis on our site so that we can take advantage of the speed increases. Unfortunately, this has caused some problems.
We are using a plugin that takes advantage of the “wc_get_template_part” filter to output its content at the appropriate location on the product archive page. For some reason when Redis is enabled, this filter returns a null value to the plugin causing the area to be blank. This has some pretty bad problems such as the sort by box and pagination buttons disappearing completely. I’m able to fix this if I disable the plugin’s AJAX functions and revert to the default sortby/pagination.
I have dove into the code trying to figure out why this happened and traced it to Redis. I’m unable to see where this null value is coming from, but it only occurs when it is enabled. I’ve spoken to Kinsta, our host that installed the Redis server (version 6.0.6) and they are unable to provide any support.
Is there a way to disable caching of this filter? Is that even something that’s supposed to be happening? I can try and troubleshoot this issue but I don’t even know where to start. I’ve ruled out all other possibilities at this point.
- The topic ‘wc_get_template_part returning null when WP Redis is enabled’ is closed to new replies.