Browse code

- add some notes about the DB behaviour of cr_user_carrier

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@4839 689a6050-402a-0410-94f2-e92a70836424

Henning Westerholt authored on 04/09/2008 14:01:01
Showing 2 changed files
... ...
@@ -14,8 +14,8 @@ Henning Westerholt
14 14
 
15 15
    Copyright � 2007 1&1 Internet AG
16 16
    Revision History
17
-   Revision $Revision: 4594 $ $Date: 2008-08-06 12:08:33 +0200
18
-                              (Mi, 06 Aug 2008) $
17
+   Revision $Revision: 4838 $ $Date: 2008-09-04 15:53:32 +0200
18
+                              (Do, 04 Sep 2008) $
19 19
      __________________________________________________________
20 20
 
21 21
    Table of Contents
... ...
@@ -724,9 +724,12 @@ cr_tree_rewrite_uri(tree, domain)
724 724
 
725 725
    This function loads the carrier and stores it in an AVP. It
726 726
    cannot be used in the config file mode, as it needs a mapping
727
-   of the given user to a certain carrier. This mapping must be
728
-   available in the table that is specified in the
729
-   "subscriber_table" variable.
727
+   of the given user to a certain carrier. The is derived from a
728
+   database entry belonging to the user parameter. This mapping
729
+   must be available in the table that is specified in the
730
+   "subscriber_table" variable. This data is not cached in memory,
731
+   that means for every execution of this function a database
732
+   query will be done.
730 733
 
731 734
    Meaning of the parameters is as follows:
732 735
      * user - Name of the user for the carrier tree lookup.
... ...
@@ -921,8 +921,11 @@ cr_tree_rewrite_uri(tree, domain)
921 921
 	    <para>
922 922
       This function loads the carrier and stores it in an AVP.
923 923
       It cannot be used in the config file mode, as it needs a mapping of the
924
-	  given user to a certain carrier. This mapping must be available in the
924
+	  given user to a certain carrier. The is derived from a database entry
925
+	  belonging to the user parameter. This mapping must be available in the
925 926
 	  table that is specified in the <quote>subscriber_table</quote> variable.
927
+	  This data is not cached in memory, that means for every execution of this
928
+	  function a database query will be done.
926 929
 	    </para>
927 930
 	    <para>Meaning of the parameters is as follows:</para>
928 931
 	    <itemizedlist>