Logs: Cache API and Resource Usage

The Logs panel contains data about optimizations and cache purges/invalidations for your site. You can also find detailed information about a site’s daily pageviews and CDN bandwidth usage.

This data is accessible directly inside the Service Usage Log. You can also download it by clicking on “Download Log (.csv)”.

logs-2.png

Cache API

The Cache API section is useful for tracking which events occur on a given day. This is mainly relevant for sites integrating manually via the API. There are four categories of events to keep an eye on:

  • Optimizations. Note that these are the past optimization requests sent to our service, not the actual optimizations. In some cases, these requests may not result in successful optimizations. To view the current status of any page, use the Cache Status panel;
  • Purge/Invalidate Requests. These are received requests for NitroPack to delete or invalidate the cache for a page;
  • Tag Create/Delete Requests. These requests are necessary for NitroPack to react to content changes on a website;

Cache_API_2.png

Use the date picker element above the usage chart if you want to choose a different date.

Calendar.png

When you scroll down, you can see a detailed breakdown of all the events for the selected day.

For example, you can see when Purge/Invalidate requests occurred. Also, the “Reason” field indicates why the cache was purged/invalidated.

1_censored.png

Manual URL and full purges via the Dashboard are initiated by a user clicking on a purge button. 

For example, if you click on the “Purge Cache” button in your NitroPack Dashboard, the Usage Log will show a “Purge/Invalidate” request with “Full purge via the Dashboard” as a reason.

purge_cache.png

You can also trigger manual cache purges from the Cache Status panel by clicking on the small red icon next to each URL or the button at the top right.

url_purge.png

On the other hand, your site’s cache can be cleared automatically after events like adding new or changing existing content. These events result in reasons like “Invalidate related pages due to publishing Post ‘Blog Name’.

Cache_API_5.png

Or Updated Post ‘Post Name’

Cache_API_6.png

Resource Usage

The Resource Usage section shows you how many pageviews and CDN bandwidth your website generated per day as well as which resources use the most CDN bandwidth.

logs_resource_usage.png

Again, scroll down for a detailed breakdown of your daily resource usage or download the data in a .csv file.

Was this article helpful?
0 out of 4 found this helpful

Comments

0 comments

Article is closed for comments.