Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Here are list of supported types:

TypeDescription

prefix

Unit config prefix. Invalidates cached data, when associated database table content is changed. Cached data only for latest database state is kept.

prefix_id

Unit config prefix. Invalidates cached data, when currently viewed record (e.g. product on detail page) data in database is changed. Cached data only for latest database state is kept.

var

Request variable (get/post). Invalidates data, when value for specified request variable changes. Cached data for each possible request variable value is stored in parallel.

To simplify developer life each cached key will also contain this configuration:

...

  1. "param" and "skip_param" types (see how "var" and "skip_var" are implemented), that would use "$this->GetParam" to get parameter value
  2. prefix cache key parts, that are added to $parts array based on their type to avoid conflicts (e.g. when template parameter is named like request variable)

Related Tasks

Jira Legacy
serverSystem Jira
serverId513b375f-8291-3313-9d9f-704c39b1f915
keyINP-1730