Transcribe Documentation

Caching with Transcribe

Do not use native ExpressionEngine template or tag caching for language-dependent output. Transcribe provides the caches below. CE Cache is an optional third-party integration; it must be installed separately and cache IDs must distinguish languages.


Note: The following caching options can all be used in conjunction with each other.

Option 1: Transcribe Route Lookup Cache

The Transcribe route lookup cache can be used to cache database queries that can be pretty resource intensive on larger sites. Transcribe needs to be able to write to the directory: system/user/cache/transcribe/

$config['transcribe_file_cache_route_lookup'] = "y";

The default cache time will cache the query results for 900 seconds (15 minutes). To change this, add this setting to your config file:

$config['transcribe_file_cache_route_lookup_time'] = 900; // In seconds


Option 2: Cache Structure Related URLs

Transcribe's Cache Structure Related URLs is designed to cache the language specific URL's that get checked when using Structure in conjunction with Transcribe. This cache should be considered on sites with large Structure trees. The cache lasts 900 seconds before refreshing.

$config['transcribe_file_cache_structure_related_urls'] = "y";

The default cache time will cache for 900 seconds (15 minutes). To change this, add this setting to your config file:

$config['transcribe_file_cache_structure_related_urls_time'] = 900; // In seconds


Option 3: Cache Site Pages

The Transcribe Site Pages cache should also be considered with larger Structure trees. It will cache the language specific versions of the Site Pages array.

$config['transcribe_file_cache_site_pages'] = "y";

The default cache time will cache for 900 seconds (15 minutes). To change this, add this setting to your config file:

$config['transcribe_file_cache_site_pages_time'] = 900; // In seconds


Caching with CE Cache

When further caching is needed, we recommend using CE Cache. It's important to note that you will need to add the {transcribe:language_abbreviation} tag to the id parameter on CE Cache tags.

Support

Having problems setting up and/or using Transcribe? Support is offered from 10am to 4pm EST weekdays. Send us an email at help@eeharbor.com and we will respond as quickly as we can.