Quote:
Originally Posted by GCC LLC
Have you had any experience using this on a load balanced server setup? I have 2 web front end servers and a shared (can use either CIFS or NFS) filesystem but when I enable this plugin, the servers all seem to slow down quite a bit. Do you know if I absolutely need to have the templates_c directory shared between all web servers? It seems that when smarty compiles to a remote filesystem that is where the slowdown occurs. I know this isn't a problem related specifically to your plugin, but thought I'd ask here anyway. BTW, my link between servers is all at 100mbps so there is plenty of bandwidth there to take care of things, but I may be limited by either the NFS or the CIFS services throughput. Your thoughts?
|
Hmm, probably more of a Smarty question. I am not very experienced in the load balancing area but if you want to, you can try using a local directory for the templates_c. You would have to edit the plugin code. The plugin named "Start Up Smarty", find:
Code:
$smarty->compile_dir = DIR . '/templates_c';
You can change that to whatever you wish, example:
Code:
$smarty->compile_dir = '/some/other/path/onyour/server';
Just make sure the directory is writable.