Many of you might have a busy site (like us) and things can slow down during your peak traffic times. Or, you just might want to speed up serving your translated pages, regardless of the speed of translation across the net, by pre-fetching your translations and populating your dB cache.
We do this very simply, and manually, during off-peak times using the urllist.txt file generated by vBSEO, as follows (linux wget example):
(1) Copy the ./data/urllist.txt file to something like ja.txt (we will use Japanese as an example here).
(2) Simply use either vi or sed (or your favorite tool) to append ?language=ja (or whatever language you use) to the end of each URL. Example: %s/$/?language=ja/
(3) Optional: Remove the posts and index URLs if you want to focus on showthreads and tags, etc. This step is optional, and can be easily done with grep.
(4) Run this command in the same directory:
Code:
wget -b -O /dev/null -i ja.txt -o links.txt -U your_site_wget_ja
Basically, wget will run in the background (-b), send the output to /dev/null, and GET every URL in the ja.txt (-i), send the output to (optional) links.txt (-o) and then to track your progress in the log files (optional) you can specify a string for your user agent (-U).
Also, you can add the wait (-w) option in wget if you need it, but we run this off peak, so nevermind.
I found using wget against a modified version of urllist.txt works great to prefetch translations
This is very and you can easily run it on your (linux) server. Enjoy