porterwp
  • Welcome
  • Documentation
    • Directory Structure
    • Configuration Files
    • Porter Json
    • Posttypes Json
    • Taxonomies Json
    • Blocks Json
    • Posttypes Taxonomies
    • Assets
    • Blocks
    • Make Sh
    • Premium Filters Block
    • Ajax Filters
    • Caching
    • Hooks
    • Admin Ui
  • Filters
    • porter_acf_option_defaults
    • porter_block_folders
    • porter_block_path
    • porter_block_patterns_path
    • porter_blocks_array
    • porter_blockstyle_args
    • porter_blockstyles_path
    • porter_core_blockstyles_path
    • porter_core_pattern_categories
    • porter_default_object_args
    • porter_dynamic_blocks
    • porter_editor_scripts_default_args
    • porter_editor_styles_default_args
    • porter_filter_event_date
    • porter_filter_parsed_query
    • porter_filter_tax_query_relation
    • porter_public_scripts_default_args
    • porter_public_styles_default_args
    • porter_wp_config_filepath
    • porter_wp_inc_filepath
    • porter_wp_inc_filepath_exclusions
    • porter_wp_inc_load_first_filepaths
Powered by GitBook
On this page
  1. Documentation

Caching

PorterWP only caches when wp_get_environment_type() === 'production'.

Data cached
Option name
Expiry

Scanned block list

porter_blocks

Until version changes

Block styles array

porter_block_styles

–

Included PHP files

porter_inc_files

–

Clearing the cache

  1. WP Admin → Settings → PorterWP → Clear Cache

  2. Bump the version key in any porter/config/*.json.

  3. wp option delete porter_* via CLI.

See the Environment Awareness doc for in‑depth details.

PreviousAjax FiltersNextHooks

Last updated 1 day ago