We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f715cf2 commit c0e694fCopy full SHA for c0e694f
classes/models/FrmFormApi.php
@@ -28,6 +28,9 @@ class FrmFormApi {
28
protected $new_days = 90;
29
30
/**
31
+ * If true, calls to get_api_info will bypass cache.
32
+ * This is set true by calling force_api_request.
33
+ *
34
* @var bool
35
*/
36
protected $force = false;
@@ -89,6 +92,14 @@ public function get_cache_key() {
89
92
return $this->cache_key;
90
93
}
91
94
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
+ */
103
public function force_api_request() {
104
$this->force = true;
105
0 commit comments