Magento How-to: Prime Your Cache

Once development is done you reach that all important milestone.. you switch caching on. Yeah, it’s a bit of an anticlimax really.

Caching only works when the cache is primed. It can take time for your visitors to reach every nook and cranny of your site, so why not automate it?

Login to your server and run the following

1
wget http://www.yourmagentostore.com -r --delete-after -nd --reject png,jpg,jpeg,gif

Specifying -r will make wget recursively download the contents of your site, –delete-after will ensure that the files you download are not kept on your hard drive, -nd will result in no directories being created and –reject, with the arguments png,jpg,jpeg,gif will not download any image files.