Title: Cache Issue
Last modified: December 26, 2022

---

# Cache Issue

 *  Resolved [alexg9](https://wordpress.org/support/users/alexg9/)
 * (@alexg9)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/cache-issue-56/)
 * Hi,
 * I adore wpdiscuz but the vote system is not working when swift Performance cache
   is active.
 * I’ve read[ this thread](https://wordpress.org/support/topic/cache-issue-with-wpdiscuz/)
   asking for the same thing but It doesn’t seem to be resolved yet

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

 *  Plugin Support [gVectors Support](https://wordpress.org/support/users/gvectorssupport/)
 * (@gvectorssupport)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/cache-issue-56/#post-16320170)
 * Hi,
 * Please use the following hook code:
 * `add_action('wpdiscuz_reset_comments_cache','swift_performance_custom_purge_cache');
   
   add_action('wpdiscuz_reset_comments_extra_cache','swift_performance_custom_purge_cache');
   function swift_performance_custom_purge_cache($postID){if(class_exists('Swift_Performance_Cache')){
   $premalink = get_permalink($postID);Swift_Performance_Cache::clear_permalink_cache(
   $premalink);}}
 * Put the code in the active theme functions.php file.
    -  This reply was modified 3 years, 5 months ago by [gVectors Support](https://wordpress.org/support/users/gvectorssupport/).
 *  Thread Starter [alexg9](https://wordpress.org/support/users/alexg9/)
 * (@alexg9)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/cache-issue-56/#post-16320614)
 * I’ve added the code on functions.php but nothing happens
 * [https://ibb.co/gR5zhbt](https://ibb.co/gR5zhbt)
 *  Plugin Support [gVectors Support](https://wordpress.org/support/users/gvectorssupport/)
 * (@gvectorssupport)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/cache-issue-56/#post-16320644)
 * Could you please remove the previously provided code and put this one:
 * `add_action('wpdiscuz_reset_comments_cache','swift_performance_custom_purge_cache');
   
   add_action('wpdiscuz_reset_comments_extra_cache','swift_performance_custom_purge_cache');
   function swift_performance_custom_purge_cache($postID){    if(class_exists('Swift_Performance_Cache')){
   Swift_Performance_Cache::clear_post_cache($postID);    }}
    -  This reply was modified 3 years, 5 months ago by [gVectors Support](https://wordpress.org/support/users/gvectorssupport/).
 *  Thread Starter [alexg9](https://wordpress.org/support/users/alexg9/)
 * (@alexg9)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/cache-issue-56/#post-16321046)
 * Hi,
 * New code tested, but didn’t work
 *  Plugin Support [gVectors Support](https://wordpress.org/support/users/gvectorssupport/)
 * (@gvectorssupport)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/cache-issue-56/#post-16322055)
 * Please register and open a new support topic in the [wpDiscuz.com ](https://wpdiscuz.com/community/)
   forum for deeper support.

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

The topic ‘Cache Issue’ is closed to new replies.

 * ![](https://ps.w.org/wpdiscuz/assets/icon-256x256.png?rev=1076265)
 * [Comments - wpDiscuz](https://wordpress.org/plugins/wpdiscuz/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpdiscuz/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpdiscuz/)
 * [Active Topics](https://wordpress.org/support/plugin/wpdiscuz/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpdiscuz/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpdiscuz/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [gVectors Support](https://wordpress.org/support/users/gvectorssupport/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/cache-issue-56/#post-16322055)
 * Status: resolved