сделать темпелйт новый и проверить что есть данные в кеше
$cache_id = 'last_items_' . $_SERVER['GEOIP_COUNTRY_CODE'];
$last_items = Cache::get($cache_id);
print_r($last_items );
Lasted Visited Galleries By Country
Re: Lasted Visited Galleries By Country
Don't forget to run script update
Re: Lasted Visited Galleries By Country
что то добавляется
по стране Array ( [0] => 11068 [1] => 11068 [2] => 10846 )
по стране Array ( [0] => 11068 [1] => 11068 [2] => 10846 )
Re: Lasted Visited Galleries By Country
2. создаем новый темпелйт viewed_in_country
<thumb num=1-10 limit_by_gallery_id=true gallery_id=CACHE_GET_last_viewed_cache_id order=row >
<!--GALLERY_ID--> ......<br>
</thumb>
<thumb num=1-10 limit_by_gallery_id=true gallery_id=CACHE_GET_last_viewed_cache_id order=row >
<!--GALLERY_ID--> ......<br>
</thumb>
Don't forget to run script update
Re: Lasted Visited Galleries By Country
/?force_template=viewed_in_country&last_viewed_cache_id=last_items_<?=$_SERVER['GEOIP_COUNTRY_CODE']?>
показывает что надо ?
показывает что надо ?
Don't forget to run script update
Re: Lasted Visited Galleries By Country
если внести страну ту у которой 0 в кеше что он выведет?
Re: Lasted Visited Galleries By Country
просто Х галер из базы, если я верно понял вопрос
Don't forget to run script update
Re: Lasted Visited Galleries By Country
но думаю быстрее просто протестировать в темплейте что надо
Don't forget to run script update
Re: Lasted Visited Galleries By Country
то есть тупо рандом? да я проестил сразу, показывается по неизвестным странам солянку, значит рандом







