Template:
<br/> <br/> <br/> <inp2:m_Cache> T_DEF: <?php echo date('Y-m-d H:i:s'); ?><br/> </inp2:m_Cache> <inp2:m_Cache key="skip_var:page"> T_SKIP_VAR[page]: <?php echo date('Y-m-d H:i:s'); ?><br/> </inp2:m_Cache> <inp2:m_Cache key="var:test"> T_ADD_VAR[test]: <?php echo date('Y-m-d H:i:s'); ?><br/> </inp2:m_Cache> <inp2:m_Cache key="skip_prefix:phrases"> T_SKIP_PREFIX[phrases]: <?php echo date('Y-m-d H:i:s'); ?><br/> </inp2:m_Cache> <inp2:m_Cache key="prefix:poll"> T_PREFIX[poll]: <?php echo date('Y-m-d H:i:s'); ?><br/> </inp2:m_Cache> <inp2:m_Cache key="prefix_id:poll"> T_PREFIX_ID[poll]: <?php echo date('Y-m-d H:i:s'); ?><br/> </inp2:m_Cache> <inp2:m_Cache key="param:test_param_missing"> T_PARAM[test_param_missing]: <?php echo date('Y-m-d H:i:s'); ?><br/> </inp2:m_Cache> <inp2:m_SetParam test_param_existing="1"/> <inp2:m_Cache key="param:test_param_existing"> T_PARAM[test_param_existing]: <?php echo date('Y-m-d H:i:s'); ?><br/> </inp2:m_Cache>
Preparations
- in IDE:
- create themes/advanced/test.tpl template with above shown content
- in /system/config.php make sure, that $_CONFIG['Misc']['CacheHandler'] is set to 'Memcache'
- in Admin Console:
- press Rescan Themes toolbar button in Configuration → Website → Themes section
- enable Enable Tag Caching setting in Configuration → Website → Advanced section
NOTE: Replace ... in urls with base URL of your In-Portal installation.
Part 1 (default config)
- open .../test.html URL
- remember value after T_...: (e.g. after T_DEF: and so on)
- reload page several times
- confirm, that remembered values haven't changed
Part 2 (request variables)
- open .../test.html URL
- remember value after T_...: (e.g. after T_DEF: and so on)
- open .../test.html?page=1 URL
- confirm, that:
- value after T_DEF: have changed
- value after T_SKIP_VAR[page]: haven't changed
- value after T_ADD_VAR[test]: haven't changed
- remember value after T_...: (e.g. after T_DEF: and so on)
- reload page several times
- confirm, that remembered values haven't changed
Part 3 (skip prefixes)
- open .../test.html URL
- remember value after T_...: (e.g. after T_DEF: and so on)
- in Admin Console change translation of la_Active phrase in Website & Content → Labels & Phrases section
- reload the page
- confirm, that all values, except after T_SKIP_PREFIX[phrases]: were changed
- remember value after T_...: (e.g. after T_DEF: and so on)
- reload page several times
- confirm, that remembered values haven't changed
Part 4 (prefixes)
- open .../test.html URL
- remember value after T_...: (e.g. after T_DEF: and so on)
- in Admin Console create new poll in Website & Content → Polls section
- reload the page
- confirm, that only value after T_PREFIX[poll]: was changed
- remember value after T_...: (e.g. after T_DEF: and so on)
- reload page several times
- confirm, that remembered values haven't changed
Part 5 (prefix_ids)
- open .../test.html?poll_id=1 URL
- remember value after T_...: (e.g. after T_DEF: and so on)
- in Admin Console change something in poll with ID=1 in Website & Content → Polls section
- reload the page
- confirm, that only values after T_PREFIX[poll]: and T_PREFIX_ID[poll]: were changed
- remember value after T_...: (e.g. after T_DEF: and so on)
- reload page several times
- confirm, that remembered values haven't changed
Part 6 (param)
- open .../test.html URL
- remember value after T_...: (e.g. after T_DEF: and so on)
- in IDE: change <inp2:m_SetParam test_param_existing="1"/> to the <inp2:m_SetParam test_param_existing="2"/>
- reload the page
- confirm, that only value after T_PARAM[test_param_existing]: was changed
- remember value after T_...: (e.g. after T_DEF: and so on)
- reload page several times
- confirm, that remembered values haven't changed