config_load API (update)
| From: | Monte Ohrt | Date: | Mon, 09 Dec 2002 23:51:25 +0000 |
| Subject: | config_load API (update) | ||
| Groups: | php.smarty.dev php.smarty.general | ||
| Request: | Send a blank email to php-smarty-dev+get-395@lists.php.net to get a copy of this message | ||
I committed more stuff, basically I cleaned up quite a bit of the
config_load() code. It's much leaner, and it now respects the
force_compile and compile_check flags. It no longer loads the
Config_Load class if it has cached data to work with. I also sped things
up by moving the files from the cache directory to the templates_c
directory and making it a real PHP script that gets included (and
therefore accelerated). If you're using PHP 4.2.0 or later, it's even
faster using var_export() to dump the config data out in a variable
structure, otherwise it will serialize/unserialize it.
Monte