• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
CLI Cache Rebuilds

CLI Cache Rebuilds 1.0

No permission to download
Rebuild your XenForo caches from the command line.

Slavik

XenForo moderator
Staff member
#1
Slavik submitted a new resource:

CLI Cache Rebuilds - Rebuild your XenForo caches from the command line.

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...
Read more about this resource...
 

maxicep

Active member
#5
I run the search rebuild last night and it was stopped when morning. Rebuild was not completed, i will go to run from web interface today :/

P.S: Have about 7million posts
 

maxicep

Active member
#7
No i didn't see any error record on server error logs. It may stop while database backup process i think but i don't know where is the stop point so i must start rebuild from beginning :)

You may modify this program for write a log while processing. So, if you write a process log real-time in cli directory, we can know where stopped the long rebuilds and start again where it left off.
 

Slavik

XenForo moderator
Staff member
#8
No i didn't see any error record on server error logs. It may stop while database backup process i think but i don't know where is the stop point so i must start rebuild from beginning :)

You may modify this program for write a log while processing. So, if you write a process log real-time in cli directory, we can know where stopped the long rebuilds and start again where it left off.
If the backup caused the database to become inaccessible that would stop it.
 

Slavik

XenForo moderator
Staff member
#11
Yes it may related with that issue but you should think the log file while processing rebuilds :)
Incidentally, if the database is unavailable due to said backup, it wouldn't be able to write out an error to the error log anyway :)

I probably wouldnt include file-logging.
 
#12
I can't figure out how to make this work for XMG cache rebuilds.. It's over my head. I've spent hours rebuilding using the regular web based tools. How much faster is this compared to using the regular web based tools?
 

Slavik

XenForo moderator
Staff member
#13
I can't figure out how to make this work for XMG cache rebuilds.. It's over my head. I've spent hours rebuilding using the regular web based tools. How much faster is this compared to using the regular web based tools?
It's marginally faster, the main reason for these tools is to kick them off in the background.