Title: Enabling caching causes 500 error
Last modified: August 24, 2016

---

# Enabling caching causes 500 error

 *  [marketmeau](https://wordpress.org/support/users/marketmeau/)
 * (@marketmeau)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/enabling-caching-causes-500-error/)
 * Our clients website is running very slowly and the server keeps crashing daily
   so I thought I would try installing cache plugins such as W3 Total Cache to speed
   up the page load, but it just caused a 500 internal server error.
 * I had to then manually remove the plugin and any links/files/code it had created.
   I then tried the .htaccess caching and it brought up the same error.
 * Why is caching causing my site to crash and is there any way to fix this? (granito.
   co.id)
 * Any guidance would be great as this issue is causing the client to lose in google
   ranking.
 * Thanks
    Mairead

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

 *  [accuwebhosting](https://wordpress.org/support/users/accuwebhosting/)
 * (@accuwebhosting)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/enabling-caching-causes-500-error/#post-6140806)
 * Hi,
 * Please refer suggestions provided by Frederick Townes in following thread:
 * [https://wordpress.org/support/topic/plugin-w3-total-cache-500-internal-server-error?replies=40](https://wordpress.org/support/topic/plugin-w3-total-cache-500-internal-server-error?replies=40)
 * Thanks,
 *  Thread Starter [marketmeau](https://wordpress.org/support/users/marketmeau/)
 * (@marketmeau)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/enabling-caching-causes-500-error/#post-6140901)
 * Thanks for the feedback but its not the solution I was looking for. Its not just
   the W3 Total Cache plugin that causes the 500 error but any changes to the .htaccess
   file in relation to cache.
 * This is the code I added to the .htaccess file
 * ## EXPIRES CACHING ##
    <IfModule mod_expires.c> ExpiresActive On ExpiresByType
   image/jpg “access 1 year” ExpiresByType image/jpeg “access 1 year” ExpiresByType
   image/gif “access 1 year” ExpiresByType image/png “access 1 year” ExpiresByType
   text/css “access 1 month” ExpiresByType text/html “access 1 month” ExpiresByType
   application/pdf “access 1 month” ExpiresByType text/x-javascript “access 1 month”
   ExpiresByType application/x-shockwave-flash “access 1 month” ExpiresByType image/
   x-icon “access 1 year” ExpiresDefault “access 1 month” </IfModule> ## EXPIRES
   CACHING ##
 * I want to be able to speed up the site without it giving me a 500 error everytime.
   Do you have any idea why I am receiving this error?
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/enabling-caching-causes-500-error/#post-6140902)
 * – Your first step should be checking your site’s error logs for a more specific
   error message. If you need help locating them, ask your hosting provider to help
   you with that.
 *  Thread Starter [marketmeau](https://wordpress.org/support/users/marketmeau/)
 * (@marketmeau)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/enabling-caching-causes-500-error/#post-6140904)
 * I do not have access to the error log so will ask my provider and update you.
   Thanks
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/enabling-caching-causes-500-error/#post-6140906)
 * Also discuss the error with the provider if logs show any specific error,
 *  Thread Starter [marketmeau](https://wordpress.org/support/users/marketmeau/)
 * (@marketmeau)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/enabling-caching-causes-500-error/#post-6140917)
 * The host sent me the log.txt file. I don’t think this is the error log though
   as I cannot find anywhere were it says an error occurred.

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

The topic ‘Enabling caching causes 500 error’ is closed to new replies.

## Tags

 * [500 error](https://wordpress.org/support/topic-tag/500-error/)
 * [cache](https://wordpress.org/support/topic-tag/cache/)
 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [marketmeau](https://wordpress.org/support/users/marketmeau/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/enabling-caching-causes-500-error/#post-6140917)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
