Easy methods to increase your xenforo forum speed
Speed up XenForo, Xenforo1, Xenforo2

Easy methods to increase your xenforo forum speed

Welcome to the post that will seriously speed up your XenForo forum installation and how to keep it running top speed. You do care about your site speed, right?

XenForo has taken an innovative outlook to community forum software and it is quickly becoming one of the very most popular forum systems around the world. In this article, we will give out techniques on methods for you to increase your XF website speed to ensure super-duper fast load times. Start thinking about all of your members and any potential customers you may currently have or ones you may have in the future.

What Exactly what is  XenForo forum software?

XenForo is an online community software built on Zend Framework and was premiered in 2011. The program is developed and taken care of by previous vBulletin lead programmers Kier Darby and Mike Sullivan.

Based on the magic of Google trends activity around XenForo has been growing at a reliable pace within the last four years or so, whereas vBulletin and Invision Power (forum software)> (IPBoard) have been declining.

XenForo is very popular, professional and is well known because of its easy framework, built-in SEO, dynamic development, fast support, as well a crazy amount of amazing add-ins or add-ons that give you any functions you want to make your forum the best it can be.


Make your XenForo website super-duper fast

Just like we described inside our guide about how to increase WordPress, XenForo can also become slower as time passes, especially since it is a community-based software. XenForo is a lot more source heavy on your server and depending on your member activity, can be writing to your database constantly. Follow these steps below about how to increase XenForo and keep it operating fast, ensuring your members or potential customers will return. (this should be your main goal anyway!!!)

Here are 10 ways to speed up a XenForo website and keep it running crazy fast 

1. Content Delivery Network
Applying a Content Delivery Network (CDN) with XenForo is fast and simple. Using this method, you will make sure you are providing your resources (images, javascript, CSS) from multiple locations around the world so they may be delivered faster to whoever is visiting your website. KeyCDN has a simple integration with Xenforo. Follow the steps below.


Create a pull zone in your KeyCDN accounts.
Head to the document root of your XenForo install.
Add the next code to the file library/config.php and you should be using your CDN URL such as http://yourzone-ab12.kxcdn.com
$config[‘externalDataUrl’] = ‘http://yourzone-ab12.kxcdn.com/data’;
$config[‘javaScriptUrl’] = ‘http://yourzone-ab12.kxcdn.com/js’;
Get on your XenForo control panel and navigate to  Appearance > [Your Style]> Style Properties General
In the field  path to Images and replace default styles/ with http://yourzone-ab12.kxcdn.com/styles/default and click on your Style Properties button and this will apply your new configurations .

content delivery network

Xenforo style properties

2. Utilize Caching
We seriously recommend you have to cache with your XenForo community forum. You can certainly do this by either utilizing a caching add-on or by applying the XenForo caching settings, server side.

Caching Plugin

There’s a popular add-on [bd] Cache from xfrocks.com that lots of people all over the internet recommend using. It has the ability to cache all your built-in lists, views, and web pages. You’ll be able to render a full page with 0 data source queries. Which is a good thing because the least amount of database queries the better right? A lot of people see web page load times in half and even more than this depending on your server configuration, add-ons, and other similar functions. This plugin works together with back-end cache enabled or without.

Top features of [bd] Cache

1.  Cache Web pages or pages (guests only) for top-level speed
2. Admin can purge cache for individual page {any time
3. CSS to file or document for extremely faster-serving stylesheets behind CDN
4. Defer JS to ensure the page screen or display in user browser as soon as possible

If you’re running Xenforo on the Redis server, this is a caching add-on: Zend Redis Cache

Server-Side Caching

XenForo has records about how to define cache for both front-end and the back-end.

Cache front-end

Configuring the front-end is simple , and consists of simply adding the next lines to your library/config.php file.

$config[‘cache’][‘enabled’] = true;
$config[‘cache’][‘frontend’] = ‘ Core ‘;
$config[‘cache’][‘frontendOptions’][‘cache_id_prefix’] = ‘xf_’;
You can even cache sessions with the addition of the following.

$config[‘cache’][‘cacheSessions’] = true;
Cache back-end

XenForo has 3 different caching methods you can put into action for the backend.

File back-end
$config[‘cache’][‘backend’] = ‘ File ‘;
APC back-end
$config[‘cache’][‘backend’] = ‘Apc’;
Memcached back-end
$config[‘cache’][‘backend’] = ‘Memcached’;
$config[‘cache’][‘backendOptions’] = array(
tab ‘compression’ => false ,
tab ‘servers’ => array(
tabtab array(
tabtabtab // your memcached server IP /address
tabtabtab ‘ host ‘ => ‘localhost’,
tabtabtab // memcached port
tabtabtab ‘ port ‘ => 11211,
tabtab )
tab )

xenforo caching


Another recommended server-side option is to implement LiteSpeed. According to a research study from LiteSpeed, web server and MySQL optimization made For XenForo install a staggering 30x faster.

3. Image Optimization

Like with any website, image optimization is vital with XenForo. particularly when it involves working with large image attachments in threads. By optimizing your images, you are ensuring the quickest time for your web pages and you’re conserving your disk space on your server.

We recommend the Nobita Image Optimizer add-on that optimizes and compresses attached images on your pages or boards. Anywhere on your site for that matter.

4. jQuery CDN vs Local

Delivery jQuery with a CDN will likely be faster than local because you can distribute it from multiple locations that are nearer to visitors. XenForo has an integral (built-in) option actually change where jQuery is going to be loaded from. If you would like to change this then you can simply go to Options?  Performance and in the bottom, there’s a jQuery source selection. The Google CDN is an excellent one, to begin with.

5. Minify CSS

Xenforo comes with an option to minify CSS built-in. if you want to enable this you can just go to Options? Performance and just click on the enabled Minify CSS.

Xenforo minify CSS

The caching add-on [bd] Cache i mentioned earlier also give you the superpowers to minify CSS.

6. Defer Javascript ( move it to the bottom)
It will always be recommended to defer javascript and stick it before the </body> tag. By default, XenForo will load JavaScript in the header, which is the best for super speeds, but this is not suggested by Google PageSpeed Insights. This does not mean that you should base everything off GPI. Just giving you the facts here.

There’s a free add-on, Defer JS, which collects javascript in post-view output and moves these to underneath the web page. It has a visible impact on page-load times as pending HTTP {requests the rendering of a full page while scripts run anyways until everything is loaded.

Worked for me personally, increased my defer js from an F to a C! No more F’s for me or any of my websites again 🙂 – Don’t be a noob!

You can even defer javascript using the [bd] Cache add-on we mentioned earlier.

7. Fewer Add-Ons
Exactly like with WordPress, the fewer plugins/add-ons in XenForo the better. Every add-on escalates the number of HTTP requests you have as well as download times for whatever JavaScript or CSS file theirs including. While many of these optimization tips talked about are add-ons, we always recommend you test the hell out of your speed on your community forum (your xenforo forum or website) to find out if you are attaining speed dropping it, as some add-ons are better than others. If an add-on is slowing your site down then you really need to decide if you absolutely have to have it.

8. Reduce HTTP Requests
Even as we just mentioned previously, always analyze the number of HTTP requests your XenForo forum is making. One little tweak we recommend is to eliminate the sidebar. This is a super simple way to boost your front page load times.

To get this done you can just go to Appearance > Styles > [Your Style] >Templates and click into the sidebar_ share _ page template. Then simply delete all of contents. Anytime you want to re-add this to the sidebar, simply revert the template. Can this be any easier?

Xenforo sidebar share page

Using this method, you will minimize DNS lookup on your front page.

9. Leverage Browser Caching
Another form of caching you can leverage is browser caching. Check out these cool snippets you can include to your .htaccess file. such as enabling Gzip compression, adding expire headers, and disabling ETags.

browser caching with xenforo

Gzip Compression

Gzip compresses webpages and stylesheets at the server level before sending them over to the browser.

<IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml

# Remove browser bugs (only needed for really old browsers)
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent

Expire Headers

Expire headers show the browser if they should request a from the server or get it from the browser cache.

<ifModule mod_expires.c>
ExpiresActive On
## Add default Expires header
## http://developer.yahoo.com/performance/rules.html#expires
<FilesMatch “.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$”>
ExpiresDefault “access plus 1 year”

10. Choose Fast Xenforo Hosting
And lastly , choosing fast Xenforo hosting can be one of the most crucial decisions you can make when trying to boost Xenforo performance. We recommend steering clear of cheap any type of shared hosting as they have a tendency to overcrowd their servers and you’ll end up sharing resources between a mass amount of other people (websites) . We suggest choosing a VPS like Digital Ocean, Linode, or Vultr. The reason behind this is because you’ll be in complete control of your resources. And if you aren’t as technology savvy or don’t want to control your servers via CLI, ServerPilot is a superb control panel substitute which works together with Xenforo and the VPS providers mentioned previously .

web hosting for xenforo


As you can plainly see, there are very few methods for you to increase XenForo. From applying a CDN to caching, reducing HTTP {requests, image optimization, minifying CSS, deferring javascript, and server level configs. Also getting a good hosting company is just as important.

Have you got another way to increase} your XenForo forum that we probably missed? love to hear about anything you might have experience within the comments below. if you have experience with your own xenforo forum we would also love to hear from you!


Comments (3)

  1. Carmine
    August 21, 2018

    What’s up everybody, here every person is sharing these know-how,
    thus it’s nice to read this webpage, and I used to visit
    this blog all the time.

  2. chăn ra
    August 23, 2018

    I’m truly enjoying the design and layout of your blog.
    It’s a very easy on the eyes which makes it much more pleasant for
    me to come here and visit more often. Did you hire out a designer to
    create your theme? Excellent work!

    1. XenforoX
      August 28, 2018

      This was a custom design by our own team

Leave your thought here