Results 1 to 5 of 5
  1. #1
    Join Date
    May 2006
    Location
    San Francisco
    Posts
    7,325

    W3 Total Cache corrupting .htaccess

    One of our clients runs a high traffic WordPress based site using W3 Total Cache with memcached. During certain events, there will be a liveblog which is essentially just a normal post that's constantly updated and the user will need to refresh.

    The problem though is that a few times during the last event, WP's .htaccess got corrupted in that the file became randomly truncated and thus caused the site to return 500 errors. Has anyone seen this behavior before? I'm not 100% sure it's caused by W3TC but I can't think of any other plausible reasons.

    Thanks!

  2. #2
    Join Date
    May 2011
    Location
    New York, USA
    Posts
    4,019
    I have seen something similar but with zencart with memcache installed. Nothing has to do with htaccess. Some times it loads up the memory and throws 500 error, quick apache restart solves it or flushing the ram. Yours might be a slightly different case.

  3. #3
    Join Date
    May 2006
    Location
    San Francisco
    Posts
    7,325
    Quote Originally Posted by SeriesN View Post
    I have seen something similar but with zencart with memcache installed. Nothing has to do with htaccess. Some times it loads up the memory and throws 500 error, quick apache restart solves it or flushing the ram. Yours might be a slightly different case.
    Yeah, I've watched the .htaccess file and it gets overwritten with incomplete rules for some reason.

  4. #4
    Join Date
    May 2011
    Location
    New York, USA
    Posts
    4,019
    Try disabling memcache for a bit and see if the same reoccurs. W3 should not be doing such

  5. #5
    Join Date
    May 2009
    Location
    SLASH ROOT
    Posts
    867
    Change the attribute of the .htaccess file to read only (chattr +i) and see if the issue recurs. As @SeriesN suggested try disabling memcache too.

Similar Threads

  1. W3 Total Cache Server Setup
    By LeadDogGraphicStudio in forum Web Hosting
    Replies: 15
    Last Post: 10-13-2011, 12:54 PM
  2. Replies: 21
    Last Post: 06-09-2005, 10:20 AM
  3. Replies: 0
    Last Post: 03-24-2005, 01:16 PM
  4. Replies: 3
    Last Post: 03-15-2005, 04:59 AM
  5. Images corrupting after a day
    By Andrew Pakula in forum Dedicated Server
    Replies: 1
    Last Post: 06-25-2003, 08:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •