class SimplenewsSourceCacheBuild in Simplenews 7
Same name and namespace in other branches
- 7.2 includes/simplenews.source.inc \SimplenewsSourceCacheBuild
Source cache implementation that caches build and data element.
Hierarchy
- class \SimplenewsSourceCacheStatic implements SimplenewsSourceCacheInterface
- class \SimplenewsSourceCacheBuild
Expanded class hierarchy of SimplenewsSourceCacheBuild
Related topics
3 string references to 'SimplenewsSourceCacheBuild'
- SimplenewsSourceNode::initCache in includes/
simplenews.source.inc - Initialize the cache implementation.
- SimplenewsSourceTestCase::testSendCaching in tests/
simplenews.test - Test sending a newsletter to 100 recipients with caching enabled.
- simplenews_admin_settings_mail in includes/
simplenews.admin.inc - Menu callback: Simplenews admin settings - Email.
File
- includes/
simplenews.source.inc, line 936 - Contains SimplenewsSource interface and implementations.
View source
class SimplenewsSourceCacheBuild extends SimplenewsSourceCacheStatic {
/**
* Implements SimplenewsSourceCacheStatic::set().
*/
function isCacheable($group, $key) {
// Only cache for anon users.
if (user_is_logged_in()) {
return FALSE;
}
// Only cache data and build information.
return in_array($group, array(
'data',
'build',
));
}
}