Title: WP-Cache &#8211; unlink problem when adding comments, editing posts
Last modified: August 18, 2016

---

# WP-Cache – unlink problem when adding comments, editing posts

 *  [michuk](https://wordpress.org/support/users/michuk/)
 * (@michuk)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/wp-cache-unlink-problem-when-adding-comments-editing-posts/)
 * Once upon a time it happens that WordPress throws such errors on the webpage.
   Usually after adding a comment or editing a post:
 * `Warning: unlink(/var/www/wp/wp-content/cache/wp-cache-6e1b0bf0f16087dd323bcd4f04de75e3.
   html) [function.unlink]: No such file or directory in
    /var/www/wp/wp-content/
   plugins/wp-cache/wp-cache-phase2.php on line 277
 * Warning: Cannot modify header information - headers already sent by (output started
   at /var/www/wp/wp-content/plugins/wp-cache/wp-cache-phase2.php:277) in /var/www/
   wp/wp-includes/pluggable-functions.php on line 269
 * It does not happen every time when I add comment, but it;s pretty frustrating.
   The permissions seem OK (www-data has it all).
 * May it be a bug in wp-cache or rather my WP instance is misconfigured?

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

 *  Thread Starter [michuk](https://wordpress.org/support/users/michuk/)
 * (@michuk)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/wp-cache-unlink-problem-when-adding-comments-editing-posts/#post-492482)
 * Nobody? The easy fix is of course setting
    output_buffering = On in php.ini but
   obviously it’s not what I want…
 *  [Fortes](https://wordpress.org/support/users/fil/)
 * (@fil)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/wp-cache-unlink-problem-when-adding-comments-editing-posts/#post-492523)
 * I ran into this problem just now — it means that wp-cache is trying to delete
   a file that no longer exist.
 * I replaced all the `unlink` commands with `@unlink` — the “@” before the unlink
   tells it to ignore the warnings (which is a safe thing to do, considering the
   file has already been deleted.
 *  [zapata](https://wordpress.org/support/users/zapata/)
 * (@zapata)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/wp-cache-unlink-problem-when-adding-comments-editing-posts/#post-492559)
 * i’m having the same problems… what files do I have to look into to replace the
   unlink commands? Did it resolve your problem?

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

The topic ‘WP-Cache – unlink problem when adding comments, editing posts’ is closed
to new replies.

## Tags

 * [unlink](https://wordpress.org/support/topic-tag/unlink/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [zapata](https://wordpress.org/support/users/zapata/)
 * Last activity: [18 years, 9 months ago](https://wordpress.org/support/topic/wp-cache-unlink-problem-when-adding-comments-editing-posts/#post-492559)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
