Title: [Plugin: W3 Total Cache] Refresh upon new comment?
Last modified: August 19, 2016

---

# [Plugin: W3 Total Cache] Refresh upon new comment?

 *  [sashobg](https://wordpress.org/support/users/sashobg/)
 * (@sashobg)
 * [16 years ago](https://wordpress.org/support/topic/plugin-w3-total-cache-refresh-upon-new-comment/)
 * Hi all, I’ve noticed, that after I’ve installed WP3 Total cache, users try to
   post comments twice. This for me means, that they don’t see their comment upon
   posting. I allow anonymous users (who are not logged in) to post comments. Could
   this issue be solved?

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

 *  [ironmanjakarta](https://wordpress.org/support/users/ironmanjakarta/)
 * (@ironmanjakarta)
 * [16 years ago](https://wordpress.org/support/topic/plugin-w3-total-cache-refresh-upon-new-comment/#post-1531470)
 * The only way I know to solve that is to add a dummy query string to the url and
   make W3 not cache urls with parameters. So the url would look like this:
 * [http://www.freedom.com/collectivism-is-anti-freedom/comment-page-1/?f=1276402893#comment-250206](http://www.freedom.com/collectivism-is-anti-freedom/comment-page-1/?f=1276402893#comment-250206)
 * Here’s a little plugin I made to do this:
 * [http://www.michaelpshipley.com/php/force-comment-display.zip](http://www.michaelpshipley.com/php/force-comment-display.zip)
 * I haven’t tested it thoroughly so not sure if it will interfere with other plugins
   or wp functions but it works for me so far.
 *  [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [16 years ago](https://wordpress.org/support/topic/plugin-w3-total-cache-refresh-upon-new-comment/#post-1531524)
 * A cookie is set when users submit a comment so that the subsequent page load 
   displays their comment or displays the pending moderation message. Did you verify
   for yourself that this behavior occurs? You can disable W3TC to make sure that
   this is the behavior without the plugin. W3TC does not interfere with native 
   WordPress behavior. Without knowing your other plugins and W3TC settings, this
   is all I can offer.
 *  Thread Starter [sashobg](https://wordpress.org/support/users/sashobg/)
 * (@sashobg)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-refresh-upon-new-comment/#post-1531604)
 * The problem is, that sometimes a user has to wait significantly, in order to 
   get their comment posted and the user redirected to the [http://www.site.com/page#comments](http://www.site.com/page#comments)
   section.
 * What could be causing this significant slowing? It was not like that, while I
   was using another plugin. Could this be from db caching?
 * The other problem I have is, trash does not get deleted automatically. And I 
   have to clean it up every day… when I hit “Empty caches” the operation takes 
   more than 500 seconds, and I get a message “Internal server error”. So I have
   to delete the remaining files manually, or hit “Empty all caches” several times
   subsequently, and wait quite a lot of time.
 * I don’t know if all this is related, but I didn’t get any error messages while
   configuring the plugin… so I haven’t changed any permissions or anything.. hope
   you could help me.
 *  [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-refresh-upon-new-comment/#post-1531615)
 * It’s hard to say without seeing your settings. You can submit a bug submission
   report via the support tab of the plugin. I also suggest upgrading the development
   release of the plugin as well.
 *  Thread Starter [sashobg](https://wordpress.org/support/users/sashobg/)
 * (@sashobg)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-refresh-upon-new-comment/#post-1531619)
 * Thank you , I’m gonna listen to your advice.
 * I’ve installed the development release, but I get the following, when I try to
   switch on “Object cache”:
 * Object caching is not available: object-cache.php is not installed. Either the/
   home/h2/s/sl/***/vhosts/www.***.com/public_html/testing2/wp-content directory
   is not write-able or you have another caching plugin installed. This error message
   will automatically disappear once the change is successfully made.
 * I’ve deleted all .htaccess rules form other cache plugins I’ve used before (in“
   root” .htaccess file), I’ve even deleted the files of the plugin used before.
   I also changed
 * define(‘WP_CACHE’, true); //Added by WP-Cache Manager
 * to
 * define(‘WP_CACHE’, false); //Added by WP-Cache Manager
 * Also, the directory wp-content is writable, as your plugin also states, in yellow
   message. Yet, I get the error listed above.. I don’t know how to overcome this
   problem.
 * On befalf of problems with comment posting, I’ll write again, if the problem 
   persists. But I really don’t understand why I can’t switch on Object caching.
   I use the latest release of WordPress.
 *  [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-refresh-upon-new-comment/#post-1531620)
 * > Object caching is not available: object-cache.php is not installed. Either 
   > the /home/h2/s/sl/***/vhosts/www.***.com/public_html/testing2/wp-content directory
   > is not write-able or you have another caching plugin installed. This error 
   > message will automatically disappear once the change is successfully made.
 * If the permissions are properly set, deactivate and re-activate the plugin to
   resolve this or manually copy wp-content/plugins/w3-total-cache/object-cache.
   php to wp-content/
 * > define(‘WP_CACHE’, true); //Added by WP-Cache Manager
   > to
   > define(‘WP_CACHE’, false); //Added by WP-Cache Manager
 * `define('WP_CACHE', true);` should be the case.

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

The topic ‘[Plugin: W3 Total Cache] Refresh upon new comment?’ is closed to new 
replies.

 * 6 replies
 * 3 participants
 * Last reply from: [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-refresh-upon-new-comment/#post-1531620)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
