Forums

Will WP-Cache Solve Memory Problem with Server? (22 posts)

  1. BakingandBooks
    Member
    Posted 3 years ago #

    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.

  2. MadsK
    Member
    Posted 3 years ago #

    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.

  3. BakingandBooks
    Member
    Posted 3 years ago #

    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.

  4. MadsK
    Member
    Posted 3 years ago #

    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.

  5. BakingandBooks
    Member
    Posted 3 years ago #

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

  6. 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.

  7. BakingandBooks
    Member
    Posted 3 years ago #

    Ah ok, thanks! In that case:

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

  8. 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.

  9. BakingandBooks
    Member
    Posted 3 years ago #

    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.

  10. Otto
    Tech Ninja
    Posted 3 years ago #

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

    WP-Cache is dead.

  11. 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.

  12. Goose3five
    Member
    Posted 3 years ago #

    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?

  13. 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.

  14. Otto
    Tech Ninja
    Posted 3 years ago #

    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.

  15. Goose3five
    Member
    Posted 3 years ago #

    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?

  16. Otto
    Tech Ninja
    Posted 3 years ago #

    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.

  17. It's supposed to, Goose3five. You may want to twiddle with your settings.

    Otto42, I have the cache being tossed into my /tmp/wpsupercache folder, as it happens. Ramdisk is a new one on me so I'll go check that out. Thank you!

  18. BakingandBooks
    Member
    Posted 3 years ago #

    Thank you for your help Ipstenu! I upgraded to WP 2.7 and dumped all the redundant plugins. The only thing I'm not sure about is how to highlight the author comments.... I have the CSS in my style sheet from the Highlight Author plugin, but how do I implement it with the new comment threading?

    Thank you so, so much for your help. I emailed my hosting company to see what the memory is looking like right now... if it's still high after upgrading and significantly reducing the plugins I'm going to install WP-Super-Cache.

  19. Add CSS for bypostauthor in your style.css

    Mine is:
    li.bypostauthor {background-color: #CCCCCC; }

  20. BakingandBooks
    Member
    Posted 3 years ago #

    Ipstenu - I added that bit of code to my stylesheet but my comments still weren't highlighted. Tried #comments li.bypostauthor {background-color: #CCCCCC; } too and that didn't change anything.

    Do I need to change anything in the comments.php or someplace else?

  21. Otto
    Tech Ninja
    Posted 3 years ago #

    Before the new comments stuff in 2.7 work, your theme has to be modified to use that new functionality.

    More info: http://wordpress.org/support/topic/214838

  22. BakingandBooks
    Member
    Posted 3 years ago #

    You are so great Otto42, thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.