İçeriğe geç
KAMPANYA

Logo Tasarım + Web Tasarım + 1 Yıl Domain + E-posta + Hosting — $299 +KDV

AIOR

How to rebuilt Xenforo Route Filter Cache?

Sektör topluluğu — sorularınız, deneyimleriniz ve duyurularınız için.

How to rebuilt Xenforo Route Filter Cache?

Aior

Administrator
Staff member
Joined
Apr 2, 2023
Messages
175
Reaction score
2
Points
18
Age
40
Location
Turkey
Website
aior.com
1/3
Thread owner

Overview​

By default, XenForo updates its route filter cache automatically whenever you add, edit, or remove route filters. However, if the standard “Rebuild Caches” option in the Admin CP is not clearing out old route filters (or not applying new ones properly), you can force a rebuild by enabling XenForo’s “Development mode” and running a CLI command. This guide shows you how.

Important Notes​

• Development mode is meant primarily for development and testing, not for everyday use on a live forum.
• Use this method only if the standard Admin CP “Rebuild Caches” approach is failing to update route filters.
• After you finish, it’s strongly recommended that you disable dev mode again.

Step 1: Enable Development Mode​

1. Connect to your server via SSH or use a tool that allows you to edit files on your server.
2. Locate and open XenForo’s primary configuration file, typically at:
src/config.php
3. In that file, add (or uncomment) the following line inside the
<?php block:

Code:
$config['development']['enabled'] = true;

1740942207291.webp


4. Save the changes and close the file.

1740942041850.webp

Your XenForo installation is now in development mode.

Step 2: Run the Rebuild Command​

1. Make sure you are in the XenForo root directory (where cmd.php or cli.php is located).
For cpanel go to public html with:

Code:
cd /home/username/public_html

2. From the command line, run:

Code:
php cmd.php xf-dev:rebuild-caches

3. XenForo will now rebuild various internal caches, including those related to route filters.

Step 3: Disable Development Mode (Recommended)​

Once the rebuild completes, it’s best to revert to standard (non-dev) mode on a production site:
1. Reopen src/config.php.
2. Comment out or remove the line:
$config[‘development’][‘enabled’] = true;
3. Save and close the file.

You have now disabled development mode.

Conclusion​

After completing these steps, old route filters should no longer appear, and any new or modified filters will be fully recognized by XenForo. If issues persist, ensure there is no CDN or server-level caching (such as .htaccess rewrites) still serving outdated routes.
 
Last edited:

Forum statistics

Threads
171
Messages
178
Members
27
Latest member
AIORAli

Members online

No members online now.

Featured content

AIOR
AIOR TEKNOLOJİ

Tüm ihtiyaçlarınız için Teklif alın

Hosting · Domain · Sunucu · Tasarım · Yazılım · Mühendislik · Sektörel Çözümler

Teklif al

7/24 Destek · Anında yanıt

Back
Top