In: , , ,
On: 2007 / 05 / 31 Viewed: 71884 times
Shorter URL for this post: http://ozh.in/eo

You may have seen a nasty Error 500 for the past two or three hours here, and this is the second time I've had this kind of trouble. Site up, MySQL up, stuff looking OK, except that everything related to WordPress, including the admin area, dies returning an error. It turned out that the culprit was… WordPress' Cache.

Apparently, there can be sometimes a stale lock file in wp-content/cache/ that prevents everything from running normally. In my case, I'm using WP's internal cache but not the WP-Cache plugin, but it seems this problem affects also WP-Cache users. The stale lock is actually preventing things from running so well that every process just timeouts and dies.

Today's lesson : when your WordPress blog starts to behave weirdly and not responding, simply delete wp-content/cache/.

Shorter URL

Want to share or tweet this post? Please use this short URL: http://ozh.in/eo

Metastuff

This entry "WordPress Troubles ? Clean the Cache !" was posted on 31/05/2007 at 12:56 am and is tagged with , , ,
Watch this discussion : Comments RSS 2.0.

8 Blablas

  1. 1
    Ron Netherlands »
    said, on 31/May/07 at 1:25 pm # :

    How can I use the WP internal cache?? I don't have that option / directory.

  2. 2
    Ozh France »
    said, on 31/May/07 at 7:49 pm # :

    Ron » the internal cache is part of every WP installation, hence the name "internal" :) Its directory is wp-content/cache. In order to make use of it, and to reduce the number of queries on your site, you may need to add the following to your wp-config.php :

    1. define('ENABLE_CACHE', true);
  3. 3
    Kunal Australia »
    thought, on 20/Dec/09 at 6:46 am # :

    The wp-content/cache/ doesn't exist. WordPress doesn't have a cache of its own. It's only if you install the WP-Cache plugin or if the other plugins have their own caches.

    From http://codex.wordpress.org/I_Make_Changes_and_Nothing_Happens

  4. 4
    Ravi Chopra India »
    thought, on 05/Apr/11 at 4:36 am # :

    Thanks Ozh. Shall use the same on my website. Thanks a ton.

  5. 5
    hyde @ fengshuibedrooms Australia »
    thought, on 16/Jun/11 at 11:28 am # :

    Thanks OZh. I'm give it a try on my blog. Hopefully, my website won't be slow anymore or else i guess i have to find a vps server. Cheers, Hyde.

  6. 6
    Dheeraj India »
    commented, on 23/Jul/11 at 4:03 pm # :

    Thanks for sharing what is the importance of clear cache but @error 500-it is amazing to know that 500 error is also is because of cache.

  7. 7
    IsraelTorres Brazil »
    said, on 20/Oct/12 at 10:14 am # :

    Thank you man, this shit I deleted the folder that was installed by plugins wp-cache, and deleted my site back to normal faster and unstable after deleting the cache folder.

    Now are 5:06 am, I was since midnight trying to solve and you helped me, thanks

  8. 8
    Abir United States »
    commented, on 05/Mar/13 at 7:17 pm # :

    Hello,
    Please help me out. I installed the newer version of WP and now my dashboard is not rendering any css styles. It shows a very long list of items. I am so lost, please let me know how can I fix it. thank you so much!

Leave a Reply

Comment Guidelines or Die

  • HTML: You can use these tags: <a href=""> <em> <i> <b> <strong> <blockquote>
  • Posting code: Post raw code (no <> &lt; etc) within appropriate tags : [php][/php], [css][/css], [html][/html], [js][/js], [sql][/sql], [xml][/xml], or generic [code][code]
  • Gravatars: Curious about the little images next to each commenter's name ? Go to Gravatar.
  • Spam: Various spam plugins on patrol. I'll put pins in a Voodoo doll if you spam me.
  • I will mark as Spam test comments, all comments with SEO names (ie "My Cool Online Shop" instead of "Joe") or containing forum-like signatures.

Read more ?