- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
...
public function getLocations($fresh = 0)
{
$tld =& $this->varGet('tld');
$domain =& $this->varGet('domain');
// if website is viewed via IP
$noWWWButIP =& $this->varGet('noWWWButIP');
$memCacheKey = 'getLocations';
if (!$fresh) {
// already fetched and stored in vars?
if (is_array($this->varGet('arrLocations')))
$arrLocations = $this->varGet('arrLocations');
// lets try fetching from memcache
else
$arrLocations = kd()->lib('kdCache')->get($memCacheKey);
}
// regenerate
unset($arrLocations);
if (!is_array($arrLocations)) {
...
istem 21.10.2011 20:02 # +2
kovel 21.10.2011 22:59 # +1
// regenerate
unset($arrLocations);