More robust config.webo.php

1 view
Skip to first unread message

booyah

unread,
Sep 15, 2009, 3:25:31 AM9/15/09
to Web Optimizer
I am using Web Optimizer for a web app that has different instances
across multiple servers (ie. development, staging, production). In
some cases, the document root is different from one server to the
next.

So that I can have one config.webo.php that will work for any document
root, I have updated some of the $compress_options:

## Path info. Cache directory for JS files
$compress_options['javascript_cachedir'] = dirname(__FILE__)."/
cache/";
## Cache directory for CSS files
$compress_options['css_cachedir'] = dirname(__FILE__)."/cache/";
## Cache directory for HTML files
$compress_options['html_cachedir'] = dirname(__FILE__)."/cache/";
## Web Optimizer installation directory
$compress_options['webo_cachedir'] = dirname(__FILE__)."/";
## Root directory of the website
$compress_options['document_root'] = dirname(__FILE__)."/../";

Can you foresee any problems with this? It is working ok as far as I
can tell...

Nikolay Matsievsky

unread,
Sep 15, 2009, 3:32:29 AM9/15/09
to Web Optimizer
There shouldn't be any troubles if we won't 'tie' Web Optimizer
behavior to the admin interface (i.e. to check its licence or to
prevent nulled access) -- because dirname(__FILE__) can't be saved
through web interface. So we will take this case into account.
Reply all
Reply to author
Forward
0 new messages