BoldGrid / w3-total-cache

GNU General Public License v2.0
153 stars 86 forks source link

Add image service limits and update transient usage #919

Closed cssjoe closed 4 months ago

cssjoe commented 4 months ago

You can now get the Image Service usage and limit data from Extension_ImageService_Plugin::get_api()->get_usage();. If you need fresh data, then pass a boolean: Extension_ImageService_Plugin::get_api()->get_usage( true ). The data is now stored in a transient for 1 day. The settings page gets transient data if it exists.

codecov-commenter commented 4 months ago

Codecov Report

Attention: Patch coverage is 0% with 40 lines in your changes missing coverage. Please review.

Project coverage is 0.92%. Comparing base (dcf64cd) to head (aec6861).

Files Patch % Lines
Extension_ImageService_Api.php 0.00% 38 Missing :warning:
Extension_ImageService_Plugin_Admin.php 0.00% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #919 +/- ## =========================================== - Coverage 0.92% 0.92% -0.01% + Complexity 19181 19177 -4 =========================================== Files 660 660 Lines 96566 96570 +4 =========================================== Hits 893 893 - Misses 95673 95677 +4 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.