public function refreshSeoIndex() { list
($cachedTime,
$elementId,
$shopId) =
$this->
getCachedTime();
$cache =
(int) Shopware()->
Config()->
get('routerCache'
);
$cache =
$cache < 360 ? 86400 :
$cache;
$currentTime =
date('Y-m-d H:i:s'
);
if (strtotime($cachedTime) <
time() -
$cache) { $this->
setCachedTime($currentTime,
$elementId,
$shopId);
$resultTime =
Shopware()->
Modules()->
RewriteTable()->
sCreateRewriteTable($cachedTime);
if ($resultTime ===
$cachedTime) { $resultTime =
$currentTime;
} if ($resultTime !==
$currentTime) { $this->
setCachedTime($resultTime,
$elementId,
$shopId);
} } } /**
* Read the exact time of the last SEO url update. Will also return elementId and shopId
* in order to be able to update that option later
*
* todo@dn: Taken from RouterRewrite plugin - clean up
*
* @return array
*/