The caching system optimizes the performance of your dashboards by storing widget data and any computations performed using Data Analytics. This allows future requests to be served faster by utilizing results from earlier requests, thereby speeding up load times and enhancing the overall performance and responsiveness of your dashboard. Additionally, since less data needs to be queried, it helps reduce the consumption of Dashboard data output.
How It Works
When a widget is first loaded by anyone, its data is fetched and stored in cache storage on our servers. Subsequent accesses to the same widget will retrieve the pre-fetched data from the cache, whether accessed through the Admin or Run portal. The cache is automatically updated after a specified expiration time (e.g., 30 seconds, 1 hour) and enabled individually for each widget.
For example, if you've configured a widget to cache data for 10 minutes, the first time anyone accesses the Dashboard through the Admin or Run portal with the same visualization settings, the cache system will store the data for 10 minutes on our servers. Anyone accessing the dashboard within this 10-minute period will immediately receive the data without needing to wait for the API to query it again, resulting in faster response times. After 10 minutes, if anyone is viewing the dashboard, the widget will automatically reset its cache and update with new data.
This feature is particularly beneficial in scenarios where widgets display complex or resource-intensive data, such as Data Analytics functions.
All widgets support the caching system. You can enable it by entering your widget in Edit mode and then navigating to the 'Cache' tab. Once enabled, you will be able to define the expiration time, which specifies how long the cached data will be retained on our servers. You can set periods in seconds, minutes, or hours.
Related Articles
Data Analytics
Transform your raw sensor data to generate actionable insights using visual calculations. Data Analytics enables operations such as averaging, summing, finding maximum and minimum values, and more, directly on your widget variables. This feature ...
Image Widget
The Image widget provides the ability to present custom images in your dashboard. You can use it to present the logo of your company or customer, or anything else that helps the user to better visualize your application. This widget works for both ...
Video Widget
The Video widget provides the ability to present custom videos in your dashboard. You can use it to present a company or customer video, or anything else that helps the user to better visualize your application. This widget works for both ...
Compose Widget
The compose widget allows you to add pins to different images and videos. You can manipulate the colors, values, and icons for each pin. This widget also accepts features like metadata and series, that can be set in your variable data. Creating your ...
Heat Map Widget
With the Heat Map widget, you can build a colorful layer with bubbles representing the intensity of the variables on top of your image. The higher the value of the variable, the more red the bubble will be, and you can also add a heat scale to this ...