[Catalyst] How to use CDBI model outside Catalyst

Maxim Nechaev nechaev at technodesign.ru
Wed Dec 7 02:42:11 CET 2005

a> I just ran into this yesterday. I think you need to call your base app
a> class to do the initializations and get the tables and classes loaded.

a>    use MyApp;

Thanks, this works. But it load in memory Catalyst, all plugins,
dispatcher, engine, all controllers and all views. And all this is
unnecessary and useless in cron script. Why i need second full copy of
MyApp in memory? Then better instead calling from cron:
send HTTP request to some controller:
wget -O - http://localhost:3000/cron_job/

I'am wrong?

Maxim Nechaev

More information about the Catalyst mailing list