Patterns
Provides a patterns parser that uses PHP code to integrate your code seamlessly with your template files, providing advanced Cherrycake capabilities to your template structures.
See the Patterns guide to learn how to work with the Patterns module.
Configuration
directoryThe directory where patterns are stored.defaultCacheProviderNameThe default cache provider name to use for cached patterns.defaultCachePrefixThe default TTL to use for cached patterns.defaultCacheTtlThe default TTL to use for cached patterns.cachedPatternsA hash array of the patterns that will be cached, where each key is the name of the pattern, and each value is a hash array with the following possible keys:cacheProviderNameThe cache provider name to use for this pattern. If not specified, it will use the one specified in thedefaultCacheProviderNameconfig key.cachePrefixThe cache prefix to use for this pattern. If not specified, it will use the one specified in thedefaultCachePrefixconfig key.cacheTtlThe cache TTL to use for this pattern. If not specified, it will use the one specified in thedefaultCacheTtlconfig key.
Last updated
Was this helpful?