Change on cache and avoiding a warning on smarty.class.php