• I posted about an issue I’m having with my WP blog using nearly 3x the amount of memory allowed yesterday, but so far no one has responded to my post. So I’ve been searching the web and I’m wondering if a plugin like WP-Cache or WP-Super Cache will resolve the issue?

    Any advice would be much appreciated, I’m out of my depths here and will likely need to shut down my blog if I can’t resolve this issue. I’m already paying $50/month for hosting and can’t afford the next level package that has more memory.

Viewing 15 replies - 1 through 15 (of 21 total)
  • How big is your mysql database?

    Also i would recommend another host. You can get 10GB of space (With unl. traffic) at one.com (I use it for all my own sites and clients sites) and it costs 2.60 EU (3.6USD) a month. Its really cheap and it offers 24/7 english support. 99.9 uptime.

    Thread Starter bakingandbooks

    (@bakingandbooks)

    Thank you for your response MadsK!

    According to CPanel my MySQL DB is 36.19 MB.

    I’m using 512.44/160000 MB disk space and 21413.01/1500000 MB of my monthly bandwidth transfer.

    According to this WP Forum posting, WP-Super Cache actually made the memory issue worse, so now I’m back to square one.

    Well then it can’t be a MySQL memory issue.

    Try to access your ftp server and see if you can get an MB reading off wp-content and wp-include folders.

    Thread Starter bakingandbooks

    (@bakingandbooks)

    How would I go about doing that? I FTP to those folders and then….?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    Right click on your www (or public_html or whatever) folder and check the size.

    If you can’t do that you can try something like running du -hs ~/public_html from your shell access.

    Thread Starter bakingandbooks

    (@bakingandbooks)

    Ah ok, thanks! In that case:

    wp-content = 1.0 KB
    wp-includes = 2.0 KB

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    Yeah, that’s probably not right πŸ™‚ My blog folder is 15M (averaging between two blogs).

    Looking back at your previous post, it’s probably not the diskspace, it’s the php processing.

    Try WP-Cache. I’ve had a love/hate relationship with, and I found that going into my templates and changing things like <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> to <link rel="stylesheet" href="http://www.me.com/blog/wp-content/themes/mytheme/style.css" type="text/css" media="screen" /> helped a lot.

    Obviously a lot of that can’t be changed but any time I see bloginfo(), I have a stab at hard coding it. No it’s not the best coding practice, but it lowered my PHP calls enough that my site lived.

    Thread Starter bakingandbooks

    (@bakingandbooks)

    Ipstenu – I also thought that was very small, but when I right clicked and selected properties those are the numbers my FTP program told me. Not sure why?

    Why do you have a love-hate relationship with WP Cache? Do you know if my plugins will still work if I use it? Also I read on another thread that using those plugins made the issue worse.

    Thanks for the tip about the style sheet and hard coding other things in the header! Will definitely take a stab at that.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Don’t bother with WP-Cache. Use WP-Super-Cache instead.

    WP-Cache is dead.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    Sorry, I meant Supercache (need moar coffee). The folders showed up that small because the ‘size’ of a folder is not the same as the size of it’s content.

    http://wordpress.org/extend/plugins/wp-super-cache/

    I have a love/hate with WP-SuperCache because it takes up diskspace and every time I change my layout, I have to dump the cache. Also I ran metrics on it for two months, and there wasn’t that much of a difference between months, so I think it’s just not what I need. I do still think it’s a good plugin, don’t get me wrong, just didn’t meet my needs. (I went the uber geek route and optimized the heck out of my php caching on the server – You may have that option too, check http://blog.circlesixdesign.com/2007/01/22/diggproof/ )

    Looking at your plugins … If you upgrade to 2.7, you can dump ‘highlight author comment’ (since you can handle that via CSS with the new comment threading). Also “Get Recent Comments” is included as a widget in WP now, though with different formatting. “Absolute Comments” (if you’re using it to reply to comments from within the Dashboard) is also included in 2.7.

    I’d suggest the SEO plugin over AutoMeta, and any plugin that hasn’t been updated in a year or so should be checked out, since it may not be ‘modernized.’

    Dunno if that’ll help anything.

    I am new to mucking around with the back-end of my WordPress install but I noticed today that supercache is loading up the disk usage on my server tremendously. When I say tremendously I mean when I view disk space usage the Cache folder reads 966 Meg and Supercache folder is 814 Meg of it.

    How do I go about dumping the cache?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    Go to the plugin page (wp-admin/options-general.php?page=wpsupercache)

    Scroll down to Cache Contents and there are buttons to delete expired and cache.

    You can also try turning on compression.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Ipstenu: If you control your server, check to see if /tmp is configured to be a ramdisk. This is usually the case on most default configs (that I know of), and keeping your cache files in a ramdisk makes them uber-fast and improves performance quite a bit. Why keep them on disk, after all?

    Just a thought.

    Thank you both. I had 8000+ expired pages that, once dumped, freed up nearly a gigabite of space! Which begs the question, is SuperCache all that super if it can’t manage these files itself?

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Caches take up space. This is just a fact of life. It’s also sorta the point. Serving a cached file is cheaper and faster than generating a new one. Dumping your cache just means that it’ll have to rebuild it, which is slower and more expensive in CPU usage.

    WP-Super-Cache manages the cache just fine, generally speaking. It will clear files when they need to be cleared, and not before that.

    It does take up more space if you have a lot of registered users on your blog though. This can’t be helped, registered users get individualized pages instead of generic pages for anon users. WP-Super-Cache works best on blogs that don’t allow user registration.

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Will WP-Cache Solve Memory Problem with Server?’ is closed to new replies.