DmitryDulepov\Realurl\Cache\DatabaseCache::clearUrlCacheForPage PHP Method

clearUrlCacheForPage() public method

Empties the URL cache for one page.
public clearUrlCacheForPage ( integer $pageId ) : void
$pageId integer
return void
    public function clearUrlCacheForPage($pageId)
    {
        $this->databaseConnection->sql_query('DELETE FROM tx_realurl_uniqalias_cache_map WHERE url_cache_id IN (SELECT uid FROM tx_realurl_urldata WHERE page_id=' . (int) $pageId . ' AND expire=0)');
        $this->databaseConnection->exec_DELETEquery('tx_realurl_urldata', 'page_id=' . (int) $pageId . ' AND expire=0');
    }