cache_lifetime = 600; // use Smarty cache if ( $oSmarty->is_cached('search.tpl', SMARTY_CACHE_ID) === true ) { $oSmarty->display('search.tpl', SMARTY_CACHE_ID); die(); } include_once('elements'.DIRECTORY_SEPARATOR.'search_box.php'); include_once('elements'.DIRECTORY_SEPARATOR.'category_tree.php'); include_once('elements'.DIRECTORY_SEPARATOR.'merchant_list.php'); include_once('elements'.DIRECTORY_SEPARATOR.'query_list.php'); // if no products were returned if ( count($aProducts) < 1 ) { # include_once('elements'.DIRECTORY_SEPARATOR.'hot_picks.php'); } include_once('elements'.DIRECTORY_SEPARATOR.'product_display_list.php'); include_once('elements'.DIRECTORY_SEPARATOR.'nav_product_list.php'); include_once('elements'.DIRECTORY_SEPARATOR.'refineby.php'); $oSmarty->display('productlist.tpl', SMARTY_CACHE_ID); ?>