Service Usage Log: Cache API and Resource Usage

The Service Usage Log 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)”.

Cache_API_1.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 Optimizations 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 Optimizations panel by clicking on the small red icon next to each URL or the button at the top right.

Optimizations.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.

Resource_Usage_General_Censored.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 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.