Login / Status
developer.Resource
Home . Documentation . Document Library . Extension Manuals
Sponsors
hosted by punkt.deTYPO3 and Open Source Magazine

1.4. Quickstart: Use existing plugin wrappers

Enetcache delivers ready to use wrappers for vge_tagcloud and wec_map that can be easily activated and are fully transparent, here is a quickstart for vge_tagcloud, setup of wec_map is analogue:

  1. Set up plugin content elements of vge_tagcloud / wec_map as usual.

  2. Activate the caching framework in localconf.php: $TYPO3_CONF_VARS['SYS']['useCachingFramework'] = '1';

  3. Install enetcache extension

  4. Tell TYPO3 core to use the wrapper class instead of the usual extension class in frontend with this TS:plugin.tx_vgetagcloud_pi1.userFunc = tx_enetcache_extensionwrappers_vge_tagcloud_pi1->main

You could use enetcacheanalytics to prove a working configuration, do not use this extension in production!

The wrappers currently don't implement proper tagging. So, if you change eg. displayed tags in the backend, the cache entry will not be invalidated. You could either implement this for your setup (by extending the wrapper class and overwriting the getCacheTags() method), or set the cache lifetime reasonable low (currently one hour). The cache life time can be manipulated with TS: plugin.tx_vgetagcloud_pi1.cachetime = 1234

You could easily write own wrappers by extending the abstract class tx_enetcache_extensionwrappers_pi_abstract, it would be great if you send us further plugin wrappers, we will happily add them to enetcache.