XF 2.3 Performance improvements in XenForo 2.3.14

XenForo 2.3.14 is being released, all being well, next week.

In addition to the usual bug fixes and stability improvements, this upgrade also has a focus on performance. For quite some time we have all been dealing with what feels like a never ending influx of residential proxy bot swarms, DDoS attacks, aggressive crawlers (both AI and traditional) and scrapers.

Each time a request hits XenForo, the cost of this is a PHP worker connection, a database connection, CPU and memory, and unless your server is over-specced (they usually aren't) you have a finite pool of resources that real members are fighting for.

One of the biggest problems at the moment is automated traffic using residential proxy networks. This gives bad actors an upper-hand as the traffic often appears to be genuine, and human. You could ban an entire CIDR/AS Number that is being used for malicious purposes today, only to find that tomorrow those questionable IP addresses now belong to real users who cannot access your site.

Traditional detections and mitigations based on IP address alone are no longer effective. Attacks can send an extreme amount of volume and cause disruption with tens of thousands of IP addresses doing only one or two requests each.

In our recent experience, even Cloudflare and their premium mitigations for this, Cloudflare Superbot Fight Mode, are not always able to distinguish genuine human traffic from automation, and on their own, at least with default configurations, they are not enough. They are useful tools; if you're able to (or someone can on your behalf) dedicate hours per day towards monitoring your logs, detecting new patterns, writing rules to present challenges, while also trying to minimise the disruption to real humans, you're in a lucky position. But things move fast and it's difficult to stay on top for long, so we, as-in XenForo, now has to start looking inward at what we can do to lessen the impact and cost of some of these requests.

And that's what XenForo 2.3.14 is starting to do.

whats-new performance improvements​

Each guest visiting any whats-new page, including /posts, /profile-posts, /media, /resources now gets a single, shared, cached result that is returned from the root URL rather than returning a page generated from a specific numbered record. Every guest gets the same set of results and, if enabled, the HTML for those results is returned directly from the page cache. Care is also taken to ensure that under heavy concurrent traffic, there isn't a "cache stampede" effect when rebuilding the cached results. The cache records are now saved with the time the result was saved rather than from when the request started so that cached results are valid for longer when a site is under load and the stale cache records start taking longer to generate. "New profile posts" is also now constrained by the read marking data lifetime so less work is done to display this set of results.

Image proxy and oEmbed improvements​

Concurrent requests for the same image proxy or oEmbed record can no longer happen. If available, users are served the stale cache result until the new cached result is available, rather than multiple requests happening for the same resource concurrently.

oEmbed requests are now signed as previously oembed.php could fetch and store records for media that was not being shown on the page.

And the responses of image proxy and oembed requests can now be cached by browsers and CDNs more easily.

POST submission links now hardened​

Some URLs within XenForo, particularly the style, style variation, language and cookie consent URLs were previously GET requests with a unique CSRF token embedded within. On XenForo Cloud we see crawlers and bots following misc/style-varation links at a rate of over 10 million requests per-week, and similar volumes for the other URLs. Originally destined for XenForo 2.4, there is a new click handler you can opt into named link-post which submits a standard looking link as a POST request.

Limits on concurrent guest searches​

The number of searches that can be triggered by logged out users collectively is now constrained to a maximum of 4 concurrent requests at a time. Guests were triggering searches at a volume of 40 million requests per-week on XenForo Cloud. At that volume, searches were often causing PHP workers to become saturated and impact normal users.

Starting with XenForo 2.3.14, new installs will have guest searching disabled (via permissions) by default. Existing installations are not affected. However, we do still generally recommend disabling guest searching if it is not a relevant feature for your community.

"About" tab optimisations​

The way that the following and followers lists are generated for a member's "About" tab has changed to avoid using MySQL's RAND() function. This tab was expensive to run in some cases and was often being abused as such.

Better indexing for user-based searches for MySQL​

Some search requests that do not rely on keywords ("Recent content" and "Find all content by user") are now optimised to benefit from existing table indexes with PHP taking over some of the work to avoid full table scans for these specific searches.

Attachment caching​

Full-sized attachments are now cached for up to one-hour, previously not being cached at all. We were also touching the file-system or remote object storage for every attachment request to check for existence, even if it was going to be served from the cache anyway. Particularly for remote storage, this results in fewer existence checks which added time to those requests.

Guest page cache can now cache permanent redirects​

Previously, the guest page cache was only able to store and serve HTML and cached resulting from a successful HTTP code 200 request. In 2.3.14 we have now extended this to permanent redirects. This will apply to posts/<n> style links and goto/post/<n> style links which are computationally expensive as they have to find the thread, forum, specific page and generate the full URL before redirecting. These requests now store the original URL and its intended target so that the redirect can take place immediately without doing the additional work. On XenForo Cloud, hits to the common redirect routes were averaging over 15 million per week.

All of these changes are live now on XenForo community. Please open a bug report if you find anything that doesn't seem right when browsing as a guest.

If you are struggling with bots we highly recommend upgrading to XenForo 2.3.14 upon its release and continue to provide feedback on the types of traffic pressure you are seeing across the software. These changes are a good start but we do not view this game of whack-a-mole as being over by a long chalk. There'll always be more to do!

xenforo_performance_imrpovements_2_3_14.webp
 
XenForo 2.3.14 will be released one day (today, it's out now).


Dude let the lack of sleep get his him and said **** it and released on a Saturday. Madman.
 
I have already updated XenForo. What should I do next to fix these outdated templates?

View attachment 351603View attachment 351604
Yes if merging is possible, that presents to you some idea of what is conflicting. Sometimes the merge can be settled automatically.

If that proves too difficult, often you’ll want to have a backup of the current template (with your edits), revert it to default, and then re-apply your edits.
 
Yes if merging is possible, that presents to you some idea of what is conflicting. Sometimes the merge can be settled automatically.

If that proves too difficult, often you’ll want to have a backup of the current template (with your edits), revert it to default, and then re-apply your edits.
After merging, everything is ok. No error
 
I’m still getting guests hammering the what’s new pages?
See the start posting of the thread what the update does. This update does nothing against guests hammering that page but improves the performance of that page through caching so that it will have less influence on the performance of the forum. Nothing else was promised. If you want to filter out guests / scrapers you have to use 3rd party tools or add ons. Visitors currently here on this forum, despite being protected by Cloudflare rules:
Bildschirmfoto 2026-11-29 um 12.46.05.webp
 
My experience is that forum users generally do not care about new features. They mostly care that posting messages and DMs work. ie that they can post text and images and have discussions about them.
Agreed. We're still on a 1.5 release but upgrading to 2.3.13 next month. Member response on both forums to the news is very muted. The forums work well & they don't really care what's under the hood. I love my communities for that. I'm excited to give them new features which I hope they will appreciate & find useful

You're correct. We don't routinely offer discounts. We sometimes do, but they are rarely tied to any specific seasonal event.
My default is to unsubscribe from anyone who sends me seasonal offers. Black Friday - My UK inbox is blighted by this US phenomenon.
 
Hi,

Does the 2.3.14 guest page cache also cache 301 responses from /threads/<slug>.<thread_id>/post-<id>, including when the post now belongs to a different thread? That was our busiest route on our forum, reaching 2,361 requests in one minute across many post IDs. Is there a response header or another way to verify a cache hit on a self-hosted installation?
 
Yes, pretty much any of the similar redirects will cache.

You can see it visually:

1795962651103.webp


X-Xf-Cache-Status reading as HIT means the Location header came directly from the guest page cache rather than the fairly expensive queries required to locate the correct thread, page, and post ID.

But worth noting that the cache is per URL. If each of the 2,361 requests in one minute were to different URLs and those URLs hadn't been seen in the cache lifetime (default 5 minutes), then they'll all be fresh fetches with no cache hit. If some of the URLs were hit more than once in 5 minutes, those subsequent requests would come from the cache, saving the majority of the work.

If the post is moved within the cache lifetime, the cache will return the stale URL until the lifetime lapses. That's an edge case that shouldn't happen too often, and members don't fetch the URL from the cache anyway so they'll always get the correct URL.
 
Agreed. We're still on a 1.5 release but upgrading to 2.3.13 next month. Member response on both forums to the news is very muted. The forums work well & they don't really care what's under the hood. I love my communities for that. I'm excited to give them new features which I hope they will appreciate & find useful
Same. The thing with 1.5 is that the default style is very outdated and not as mobile friendly as anything in 2.x, so that will be the primary part that users see. The rest of the features they'll probably never use. Some can barely use a computer or phone.

My issue with updating one of our large forums is that there are a few remaining custom add-ons I'm working on that need to be finished up. And the upgrade itself will be a lot of work. That and we have to budget for purchased add-ons as well as renewing the XF license.
 
Where can this option from the email received today be found please? Eg 2.3.13 (2026.11)
  • Stay on your current 2.3 version by installing its security release. Each version from XenForo 2.3.0 to 2.3.13 now has a matching release, for example XenForo 2.3.9 (2026.11). Media Gallery and Resource Manager have matching releases too; choose the one for the add-on version you are running.
 
Last edited:
If your license entitles you to download 2.3.13 (2026.11) that will preset itself to you in your admin control panel or in the list of downloadable versions in your customer area for each license.
 
Back
Top Bottom