How do I change where AST stores it data?
Written by Administrator   
Wednesday, 28 June 2006
There are two main data directories in AST: var/cache and var/data. The cache directory stores information which AST has downloaded from the internet to improve performance of the application. The var/cache directory, or any of its contents can safely be deleted and AST will regenerate them on the fly. The var/data stores user data, such as which stocks you have in your portfolio. AST has no configuration parameter to set the location of these, or any other directories. However, if you want to place them somewhere else, all you need to do is create a symbolic link to another location inside these directories. For example, if you want to move var/cache you might do:

# go into ast installation directory
cd /var/www/localhost/htdocs/ast-0.2.0/var
rm -Rf cache
mkdir /tmp/ast-cache
ln -s /tmp/ast-cache cache
Last Updated ( Thursday, 27 July 2006 )