Permalink
Browse files

Update mod_tweetdisplayback.php

Add language to cacheid calculation
  • Loading branch information...
1 parent c57d9c8 commit c27553c9d545aca82a752c4b30063c2ffe14818a @klas committed Feb 2, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 mod_tweetdisplayback.php
View
@@ -52,7 +52,9 @@
if ($params->get('mymodulecache') == 1)
{
// Set the cache parameters
- $options = array('defaultgroup' => 'mod_tweetdisplayback');
+ $lang = JFactory::getLanguage();
+ $tag = $lang->getTag();
+ $options = array('defaultgroup' => 'mod_tweetdisplayback', 'language'=>$tag);
$cache = JCache::getInstance('callback', $options);
$cacheTime = $params->get('mymodulecache_time');
// J! 1.5 and 1.6 cache is set in seconds, 1.7 caches in minutes

0 comments on commit c27553c

Please sign in to comment.