Welcome to Our Community

Registration on our forums are now open for some days! Feel free to sign up today.

[Free Add-on ] CLI Cache Rebuilds 1.0

Rebuild your XenForo caches from the command line.

  1. XenForo Rocks
    Compatible XF Versions:
    • 1.4
    • 1.5
    Additional Requirements:
    Shell Access
    Visible Branding:
    These tools not affiliated with XenForo Ltd.

    This is a set of tools which allows for the rebuilding of XenForo caches from the command line, these have usually been reserved for my big board import customers (for threads and search), however recently have been expanded to include all default rebuilds and am now releasing these publicly.

    Importantly and specifically, it avoids using the deferred system, so other actions which trigger the deferred system from the web will not interfere with the rebuilds.

    Usage: Upload the cli folder to your XenForo root, then run CLIRebuilds.php from the command line. (Note, when running "All" at the Search Step the rebuilder will stop and await user input).

    View attachment 9577

    Addon caches: Adding an addon is as simple as passing the deferred array to the init_rebuilder.

    Simply create a new file, include the init_rebuilder, the array and then run the task using the cliDeferredTask.

    include_once dirname(__FILE__).'/init_rebuilder.php';
        'execute_data'=> array(
                'batch' => 200,
                'position' => 0
    If an addon author would like to create and send me a file to add in for their addon, I will be happy to do so once point 2 below is done.

    Whilst these tools are provided for free currently, donations are welcomed to continue further enhancements such as:
    • Parallel rebuilds
    • Auto-addon detection and optioning
    • The abibility to set batch size at run time, rather than hard coded
    Please message me if you wish to make a donation.
    ligo88, hero and koranis like this.
  • About Us

    Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.
  • Like us on Facebook

  • Buy us a beer!

    The management works very hard to make sure the community is running the best software, best designs, and all the other bells and whistles. Care to buy us a beer? We'd really appreciate it!

    Donate to us!