CLI Cache Rebuilds

xF1 Add-on CLI Cache Rebuilds 1.0

No permission to download
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).

xenforo_com_community_attachments_2015_12_25_21_09_30_root_pg2d9286f95118962f4ca8135c7a8c67202.png

xenforo_com_community_attachments_2015_12_25_21_10_44_root_pg24c7106072b1a882ca182031ab96b833f.png


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.

Code:
<?php
include_once dirname(__FILE__).'/init_rebuilder.php';

$deferred=array(
	'deferred_id'=>0,
	'unique_key'=>'Conversation',
	'execute_class'=>'Conversation',
	'execute_data'=> array(
			'batch' => 200,
			'position' => 0
	),
	'manual_execute'=>1,
	'trigger_date'=>time(),
);
cliRunDeferredTask($deferred);

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
  • Like
Reactions: Admin
Author
AnimeHaxor
Size
10.1 KB
Extension
zip
Downloads
2
Views
1,522
First release
Last update

More resources from AnimeHaxor

Similar resources

CLI Import External Data AnimeHaxor
0.00 star(s) 0 ratings
Downloads
8
Updated
LiteSpeed Cache - Community AnimeHaxor
Quickly and easily implement high-performance page caching on your Xenforo forum
0.00 star(s) 0 ratings
Downloads
56
Updated
Seperate cache configuration for session data
0.00 star(s) 0 ratings
Downloads
4
Updated
Easy way to optimize your forum. Extremely useful for big board.
0.00 star(s) 0 ratings
Downloads
4
Updated
Rebuilds XFMG custom field cache for each media item
0.00 star(s) 0 ratings
Downloads
2
Updated