Skip to content

Commit c0e694f

Browse files
committed
Add comments
1 parent f715cf2 commit c0e694f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

classes/models/FrmFormApi.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ class FrmFormApi {
2828
protected $new_days = 90;
2929

3030
/**
31+
* If true, calls to get_api_info will bypass cache.
32+
* This is set true by calling force_api_request.
33+
*
3134
* @var bool
3235
*/
3336
protected $force = false;
@@ -89,6 +92,14 @@ public function get_cache_key() {
8992
return $this->cache_key;
9093
}
9194

95+
/**
96+
* Flag the force property as true, so the next API request bypasses cache.
97+
* This is used to pull API data for change logs, which are excluded from the cached data.
98+
*
99+
* @since x.x
100+
*
101+
* @return void
102+
*/
92103
public function force_api_request() {
93104
$this->force = true;
94105
}

0 commit comments

Comments
 (0)