0.0.3 • Published 8 years ago

magento-cache-warmer v0.0.3

Weekly downloads
3
License
GPL-3.0
Repository
github
Last release
8 years ago

MagentoCacheWarmer

Magento Cache Warmer and Load Tester

What's this?

A very simple magento cache warmer written in node.js... which just so happens to become a load tester when you turn the volume up to 11. The cache warmer component itself is generic and could be used for other websites.

Usage

See the example file, or as below:

var urlObtainer = require('./UrlObtainer.js');
var cacheWarmer = require('./CacheWarmer.js');

var newUrlObtainer = new urlObtainer.urlobtainer({
    host: 'localhost',
    prefix: 'dev', //optional table prefix
    url: 'http://address.of.your.magento.site.com/',
    user: 'database_username',
    password: 'password_for_the_database',
    port: 3306, //optional db port
    database: 'name_of_the_database'
    /*
    max_connections: 50 <== do this to load test your server
    max_connections: 500 <=== do this to DOS your server :D
     */
});

var newCacheWarmer = new cacheWarmer.cachewarmer({
    callback: newUrlObtainer.callback
});

newCacheWarmer.start();

This is also published on NPM as module magento-cache-warmer