Drupal is really good for a lot of things when it comes to websites. One thing that can sometimes get overlooked or can lag behind (if you don't hire the right team) is the speed of your site. With all of the modules being added and configured, some things are forgotten that help to fine tune speed and performance.
This situation is not uncommon for websites. If you're stuck with a slow site, and think you have to fork over more money to fix it, think again. Before you spend more money on additional server resources or hire a consultant, here are some tips and tricks you can do to help speed up your site. I've done my best to order these by complexity.
- Drupal Performance - Drupal 7 comes with some pretty good tools for increasing the performance of your site. Enabling these is always a good first step in increasing your site performance. You can find these configuration options on the admin/configuration/development/performance page.
- Page Caching for Anonymous users
- Block Caching
- Aggregate/Optimize Stylesheets and Scripts
- CSS Emimage - This is a contributed Drupal module which helps speed the rendering of background images from your site's CSS files. It's a plug-and-play module that you enable from the modules page and then activate from the performance page (mentioned above) - that's it.
- Views Cache (If your site isn't views-heavy this won't help you much.) By default, views within Drupal aren't cached. Therefore, these pages (and blocks) are exempted from the cache settings you configured above. This is because views are intended to be dynamic aggregations of content and, therefore, by definition, excluded from cache. However, if you have a complex view, it might be good to have some cache settings on your view to help that page load more quickly. NOTE: if you enable views caching, make sure you configure the expiration settings so that new content is shown on the view when rendered.
- Here are some modules that can help with Views Cache configuration so that it expires more gracefully and is more aware of content changes that affect the view.
No comments:
Post a Comment