Changeset 2908
- Timestamp:
- 03/27/11 19:39:17 (2 years ago)
- File:
-
- 1 edited
-
alternc/trunk/bureau/class/m_quota.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
alternc/trunk/bureau/class/m_quota.php
r2863 r2908 127 127 global $db,$err,$cuid,$get_quota_cache; 128 128 $err->log("quota","getquota",$ressource); 129 if (! empty($get_quota_cache ) ) {129 if (! empty($get_quota_cache[$cuid]) ) { 130 130 // This function is called many time each webpage, so I cache the result 131 $this->quotas = $get_quota_cache ;131 $this->quotas = $get_quota_cache[$cuid]; 132 132 } else { 133 133 $this->qlist(); // Generate the quota list. … … 153 153 $this->quotas[$val]=array("t"=>$a[1],"u"=>$a[0]); 154 154 } 155 $get_quota_cache = $this->quotas;155 $get_quota_cache[$cuid] = $this->quotas; 156 156 } 157 157
Note: See TracChangeset
for help on using the changeset viewer.
