Révision 7e72b748
Ajouté par Assos Assos il y a plus de 6 ans
drupal7/sites/all/modules/ctools/includes/object-cache.inc | ||
---|---|---|
27 | 27 |
* defaults to session_id(). |
28 | 28 |
* |
29 | 29 |
* @deprecated $skip_cache is deprecated in favor of drupal_static* |
30 |
* |
|
30 | 31 |
* @return |
31 | 32 |
* The data that was cached. |
32 | 33 |
*/ |
... | ... | |
91 | 92 |
} |
92 | 93 |
|
93 | 94 |
/** |
94 |
* Remove an object from the non-volatile ctools cache |
|
95 |
* Remove an object from the non-volatile ctools cache.
|
|
95 | 96 |
* |
96 | 97 |
* @param $obj |
97 | 98 |
* A 128 character or less string to define what kind of object is being |
... | ... | |
117 | 118 |
drupal_static_reset('ctools_object_cache_get'); |
118 | 119 |
} |
119 | 120 |
|
120 |
|
|
121 | 121 |
/** |
122 | 122 |
* Determine if another user has a given object cached. |
123 | 123 |
* |
... | ... | |
197 | 197 |
*/ |
198 | 198 |
function ctools_object_cache_clean($age = NULL) { |
199 | 199 |
if (empty($age)) { |
200 |
$age = 86400 * 7; // 7 days |
|
200 |
// 7 days. |
|
201 |
$age = 86400 * 7; |
|
201 | 202 |
} |
202 | 203 |
db_delete('ctools_object_cache') |
203 | 204 |
->condition('updated', REQUEST_TIME - $age, '<') |
Formats disponibles : Unified diff
Weekly update of contrib modules