![]() If your site is even remotely popular, it is likely the comments section of your posts is being hit by spambots that add tons of spam comments into your database.įrom here, you can scan your comments and look for legitimate comments received that were marked as spam. Just in case your theme breaks during an update or some other reason, WordPress can revert your site to the Twenty Fifteen theme if necessary. I recommend leaving Twenty Fifteen in your themes along with the theme you actively use. On the lower right corner of that overlay, you will see a red Delete link that will allow you to delete the theme. You can delete a theme that you aren’t and will never use by clicking on the theme which will take you to a Theme Details overlay. Since you are in the deleting plugins mood, head over to Apperance > Themes. Do you really need that Hello Dolly plugin? No. Go to Plugins in your WordPress dashboard and thoroughly evaluate your plugins and determine their value. The problem is, if you leave all these unnecessary plugins installed, it can delay the page loading speeds of your pages and slow down your overall site performance on both the front end and back end. Deactivate and Delete Unwanted PluginsĪfter discovering WordPress plugins, many users will go crazy installing and playing with all sorts of plugins to see how they work. Go ahead and clean up your database and let out a sigh of clutter relief. Let’s go ahead and clean out all the junk in the database.Īfter your cleanup, compare the before and after and report how much database clutter and space we helped you clean out in the comment box below. Now that you’ve limited or eliminated post revisions, you still have an existing bloat in your database which can be severe depending on how long you’ve been adding / editing content on your website. Here’s the code that you’d add to your wp-config-php: define( 'WP_POST_REVISIONS', 3 ) įeel free to change the 3 to a number you are comfortable, however, my recommendation or lower number stands. ![]() If that is the case, then I’d recommend limiting post revisions to a maximum of 3 revisions to keep your database as bloat-free as possible while still having restore functionality. Of course, you may decide that revisions are important, especially if you have a multi-author blog. Add this line anywhere in your wp-config.php and revisions will no longer be saved: define( 'WP_POST_REVISIONS', false ) You can disable post revisions on all content so that this doesn’t happen in the first place by adding a single line of code to your wp-config.php (the file that stores your database authentication settings). So what can be done to fix this issue? Disable or Limit Post Revisions I’ve seen WordPress databases grow to the point of 6x the size it needs to be (we’re talking GBs of space here) with certain clients that have tons of posts and changes going on daily. The problem is WordPress will store an umlimited amount of revisions on your posts which can take up a massive amount of space and bloat in your database. What this will do is create an entire copy of your post and save it to your database which can then be used to restore an old post in case you overwrite something important. Clean Up Post RevisionsĮvery time you modify and save a post, WordPress defaults to saving a revision of your post. Once saved, your WordPress will no longer create these additional images. If that is the case, then you can set Thumbnail size, Medium size and Large size to 0 in all 6 fields. If the thumbnail being used does not match what you show in Thumbnail size under media settings, then your theme is likely using its own image size. Either way, you will be able to see the image name and location which will tell you if the theme is using your original upload or a thumbnail. In Chrome, right click image > open image in new tab. In Firefox, Right Click > View Image Info. Thumbnails may be used by your theme to display posts on your front end which you can check by right clicking the image in your browser and look for image viewing options. Thankfully, there’s a way to disable the default image sizes in your WordPress settings. It gets worse when you start adding plugins and customized themes because they also can add their own image sizes that WordPress will process on every upload. These images are left there, permanently and will likely never be used. Have you ever logged in to your WordPress site via FTP and looked at /wp-content/uploads/? If you have, you may notice that every image you upload is resized multiple times automatically on every upload. In case something goes wrong during the cleanup process, you’ll be thankful to have a backup ready for restore. Important: Before proceeding, please download a full backup of your website and database.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |