## Part 1
# Go to {nav Website & Content > Structure & Data} section.
# Choose category, that has associated physical template (e.g. `No Permissions`).
# Delete that category.
# Go to {nav Configuration > Website > Themes} section.
# Press `Rescan Themes` button.
# Refresh page (`F5`).
# Confirm that deleted category was created automatically.
## Part 2
# Go to {nav Website & Content > Structure & Data} section.
# Choose category, that has associated physical template (e.g. `No Permissions`).
# Delete that category.
# Put `<IN_SITEMAP>always</IN_SITEMAP>` in meta comment of associated template.
# Go to {nav Configuration > Website > Themes} section.
# Press `Rescan Themes` button.
# Confirm that exception about invalid `in_sitemap` value is shown.
## Part 3
NOTE: Please repeat below steps with `no`, `false` and `0` values.
# Go to {nav Website & Content > Structure & Data} section.
# Choose category, that has associated physical template (e.g. `No Permissions`).
# Delete that category.
# Put `<IN_SITEMAP>no</IN_SITEMAP>` in meta comment of associated template.
# Go to {nav Configuration > Website > Themes} section.
# Press `Rescan Themes` button.
# Confirm, that deleted category was created automatically.
# Confirm, that created category has `Include in Sitemap` checkbox unchecked.
## Part 4
NOTE: Please repeat below steps with `yes`, `true` and `1` values.
# Go to {nav Website & Content > Structure & Data} section.
# Choose category, that has associated physical template (e.g. `No Permissions`).
# Delete that category.
# Ensure `<IN_SITEMAP>yes</IN_SITEMAP>` in meta comment of associated template.
# Go to {nav Configuration > Website > Themes} section.
# Press `Rescan Themes` button.
# Confirm, that deleted category was created automatically.
# Confirm, that created category has `Include in Sitemap` checkbox unchecked.
## Part 5
# Go to {nav Website & Content > Structure & Data} section.
# Choose category, that has associated physical template (e.g. `No Permissions`).
# Delete that category.
# Remove the `<IN_SITEMAP>...</IN_SITEMAP>` from meta comment of associated template.
# Go to {nav Configuration > Website > Themes} section.
# Press `Rescan Themes` button.
# Confirm, that deleted category was created automatically.
# Confirm, that created category has `Include in Sitemap` checkbox checked.
## Part 6
# Go to {nav Website & Content > Structure & Data} section.
# Choose category, that has associated physical template (e.g. `No Permissions`).
# Delete that category.
# Put the `<IN_SITEMAP/>` in meta comment of associated template.
# Go to {nav Configuration > Website > Themes} section.
# Press `Rescan Themes` button.
# Confirm, that deleted category was created automatically.
# Confirm, that created category has `Include in Sitemap` checkbox checked.
## Part 7
# Go to {nav Configuration > Website > Output} section.
# Confirm that `Sections hidden from Sitemap` system setting is present and has `Always Shown in Catalog` value.
# Go to {nav Website & Content > Structure & Data} section.
# Uncheck `Include in Sitemap` checkbox for any category.
# Confirm, that regardless of debug mode (enabled or disabled) that category is visible:
* in catalog
* in `Parent Section` dropdown during category editing
* in internal pages dropdown, when adding link in CKEditor
## Part 8
# Go to {nav Configuration > Website > Output} section.
# Change `Sections hidden from Sitemap` system setting value to `Shown in Catalog Only in Debug Mode`.
# Go to {nav Website & Content > Structure & Data} section.
# Confirm, that with debug mode enabled category with `Show in Sitemap = No` checkbox is visible:
* in catalog
* in `Parent Section` dropdown during category editing
* in internal pages dropdown, when adding link in CKEditor
# Confirm, that with debug mode disabled that category with `Show in Sitemap = No` checkbox is hidden:
* from catalog
* from `Parent Section` dropdown during category editing
* from internal pages dropdown, when adding link in CKEditor
## Part 9
# Go to {nav Website & Content > Structure & Data} section.
# Edit some categories, to ensure both possible `Include in Sitemap` values - `Yes` and `No` - among different categories.
# Launch `generate_sitemap` scheduled task.
# Confirm, that is created `/system/sitemaps/sitemap.xml.gz` file.
# Confirm, that `/system/sitemaps/sitemap.xml.gz` file contains info about categories, included in sitemap, and does not contain info about others categories.
## Part 10
# select `simple` theme
# change `privacy.tpl` of this theme - ensure `<SECTION>Folder</SECTION>` in the header part
# delete `Privacy Policy` category from catalog
# go to {nav Configuration > Website > Themes} section
# press `Rescan Themes` button
# confirm, that `Folder` category was created automatically an it has `Include in Sitemap` checkbox unchecked
## Part 11 - testing structure cache rebuild
# Check/change config.php to enable Memcache.
# Go to {nav Tools > System Tools > } section.
# Press `Reset` button in the `Memory Cache` section.
# Confirm, that data exists under `master:StructureTree` cache.
# Comment out code line `$data['cache_format'] = self::CACHE_FORMAT;` in the CategoryHelper::_getStructureTree method.
# Add `$data['rebuilt_on'] = TIMENOW;` code line besides code line, commented before.
# Go to {nav Website & Content1 > Structure & Data} section.
# Go to {nav Tools > System Tools} section.
# Confirm that data exists under `master:StructureTree` cache.
# Confirm that data under `master:StructureTree` cache has 'rebuilt_on' key in the end.
# Confirm that value of 'rebuilt_on' key in the end of `master:StructureTree` cache differs from same value from previous cache rebuilt cycle.
# Add `$data['cache_format'] = 1;` code line besides code line, commented before.
# Go to {nav Website & Content1 > Structure & Data} section.
# Go to {nav Tools > System Tools} section.
# Confirm that data exists under `master:StructureTree` cache.
# Confirm that data under `master:StructureTree` cache has 'rebuilt_on' key among last 2 keys.
# Confirm that value of 'rebuilt_on' key in the end of `master:StructureTree` cache differs from same value from previous cache rebuilt cycle.
# Confirm that data under `master:StructureTree` cache has 'cache_format' key among last 2 keys.
# Confirm that value of 'cache_format' key in the end of `master:StructureTree` cache is 1.
# Go to {nav Website & Content1 > Structure & Data} section.
# Go to {nav Tools > System Tools} section.
# Confirm that data exists under `master:StructureTree` cache.
# Confirm that data under `master:StructureTree` cache has 'rebuilt_on' key among last 2 keys.
# Confirm that value of 'rebuilt_on' key in the end of `master:StructureTree` cache differs from same value from previous cache rebuilt cycle.
# Change recent `$data['cache_format'] = 1;` code line to `$data['cache_format'] = 2;`.
# Go to {nav Website & Content1 > Structure & Data} section.
# Go to {nav Tools > System Tools} section.
# Confirm that data exists under `master:StructureTree` cache.
# Confirm that data under `master:StructureTree` cache has 'rebuilt_on' key in the end.
# Confirm that value of 'rebuilt_on' key in the end of `master:StructureTree` cache differs from same value from previous cache rebuilt cycle.
# Confirm that value of 'cache_format' key in the end of `master:StructureTree` cache is 2.
# Go to {nav Website & Content1 > Structure & Data} section.
# Go to {nav Tools > System Tools} section.
# Confirm that data exists under `master:StructureTree` cache.
# Confirm that data under `master:StructureTree` cache has 'rebuilt_on' key in the end.
# Confirm that value of 'rebuilt_on' key in the end of `master:StructureTree` cache not changed and has same value as at previous check.