Сделал все по инструкции но
при открытии в вебе
/scj/tube/index.php?force_template=viewed_in_country&last_viewed_cache_id=last_items_SE
<thumb num=1-40 limit_by_gallery_id=true gallery_id=CACHE_GET_last_viewed_cache_id
</thumb>
как будто теги не компилируются
Lasted Visited Galleries By Country
Re: Lasted Visited Galleries By Country
ast_viewed_cache_id
не закрыт таг
не закрыт таг
Don't forget to run script update
Re: Lasted Visited Galleries By Country
кстати в вики поправь тег
https://smartcj.com/wiki/doku.php?id=ru ... tion_hints
не закрыл ты
так вот далее
<thumb num=1-40 limit_by_gallery_id=true gallery_id=CACHE_GET_last_viewed_cache_id>
<!--GALLERY_ID-->
</thumb>
/scj/tube/index.php?force_template=viewed_in_country&skip_cache=true&last_viewed_cache_id=last_items_SE
17503 19443 17283 17711 16736 16926 16753 17519 17761 17668 17524 17500 17443 17376 17366 17342 16990 16762 16761 16760 16759 16758 16757 16756 16755 16754 16752 16751 16750 16749 16748 16747 16746 16745 16744 16743 16742 16741 16740 16739
/scj/tube/index.php?force_template=viewed_in_country&skip_cache=true&last_viewed_cache_id=last_items_US
17503 19443 17283 17711 16736 16926 16753 17519 17761 17668 17524 17500 17443 17376 17366 17342 16990 16762 16761 16760 16759 16758 16757 16756 16755 16754 16752 16751 16750 16749 16748 16747 16746 16745 16744 16743 16742 16741 16740 16739
контент не меняется
https://smartcj.com/wiki/doku.php?id=ru ... tion_hints
не закрыл ты
так вот далее
<thumb num=1-40 limit_by_gallery_id=true gallery_id=CACHE_GET_last_viewed_cache_id>
<!--GALLERY_ID-->
</thumb>
/scj/tube/index.php?force_template=viewed_in_country&skip_cache=true&last_viewed_cache_id=last_items_SE
17503 19443 17283 17711 16736 16926 16753 17519 17761 17668 17524 17500 17443 17376 17366 17342 16990 16762 16761 16760 16759 16758 16757 16756 16755 16754 16752 16751 16750 16749 16748 16747 16746 16745 16744 16743 16742 16741 16740 16739
/scj/tube/index.php?force_template=viewed_in_country&skip_cache=true&last_viewed_cache_id=last_items_US
17503 19443 17283 17711 16736 16926 16753 17519 17761 17668 17524 17500 17443 17376 17366 17342 16990 16762 16761 16760 16759 16758 16757 16756 16755 16754 16752 16751 16750 16749 16748 16747 16746 16745 16744 16743 16742 16741 16740 16739
контент не меняется
Re: Lasted Visited Galleries By Country
&skip_cache=true
значит пропускать кеш
а код как раз в кешем и работает
значит пропускать кеш
а код как раз в кешем и работает
Don't forget to run script update
Re: Lasted Visited Galleries By Country
/scj/tube/index.php?force_template=viewed_in_country&last_viewed_cache_id=last_items_SE
/scj/tube/index.php?force_template=viewed_in_country&last_viewed_cache_id=last_items_US
тоже пальто
/scj/tube/index.php?force_template=viewed_in_country&last_viewed_cache_id=last_items_US
тоже пальто
Re: Lasted Visited Galleries By Country
так
а что должно показать? туда были добавлены какие то галеры?
вы смотрели что в кеше с id = last_items_US ?
а что должно показать? туда были добавлены какие то галеры?
вы смотрели что в кеше с id = last_items_US ?
Don't forget to run script update
Re: Lasted Visited Galleries By Country
ну логично что US и SE
выдача должна меняться? а она не меняется
выдача должна меняться? а она не меняется
Re: Lasted Visited Galleries By Country
логично
как вы добавляете в этот кеш данные? проверяли что туда что-то было добавлено?
как вы добавляете в этот кеш данные? проверяли что туда что-то было добавлено?
Don't forget to run script update
Re: Lasted Visited Galleries By Country
добавляю так как в вики написано
<?
if ((int) '<!--GALLERY_ID-->') {
$cache_id = 'last_items_' . $_SERVER['GEOIP_COUNTRY_CODE'];
$last_items = Cache::get($cache_id);
$last_items[(int) '<!--GALLERY_ID-->'] = (int) '<!--GALLERY_ID-->';
$last_items = array_slice($last_items, 0, 100);
Cache::set($cache_id, $last_items, 86400);
}
if ((int) '<!--GALLERY_ID-->') {
$last_items = Cache::get('last_items');
$last_items[(int) '<!--GALLERY_ID-->'] = (int) '<!--GALLERY_ID-->';
$last_items = array_slice($last_items, 0, 100, true);
Cache::set('last_items', $last_items, 3600);
}
?>
<?
if ((int) '<!--GALLERY_ID-->') {
$cache_id = 'last_items_' . $_SERVER['GEOIP_COUNTRY_CODE'];
$last_items = Cache::get($cache_id);
$last_items[(int) '<!--GALLERY_ID-->'] = (int) '<!--GALLERY_ID-->';
$last_items = array_slice($last_items, 0, 100);
Cache::set($cache_id, $last_items, 86400);
}
if ((int) '<!--GALLERY_ID-->') {
$last_items = Cache::get('last_items');
$last_items[(int) '<!--GALLERY_ID-->'] = (int) '<!--GALLERY_ID-->';
$last_items = array_slice($last_items, 0, 100, true);
Cache::set('last_items', $last_items, 3600);
}
?>
Re: Lasted Visited Galleries By Country
print_r($last_items);
выводит добавленное в кеш?
выводит добавленное в кеш?
Don't forget to run script update







