SimplePie_Cache_MySQL::unlink() public WP 1.0
Remove the cache
{} Это метод класса: SimplePie_Cache_MySQL{}
Хуков нет.
Возвращает
true|false
. Success status
Использование
$SimplePie_Cache_MySQL = new SimplePie_Cache_MySQL(); $SimplePie_Cache_MySQL->unlink();
Код SimplePie_Cache_MySQL::unlink() SimplePie Cache MySQL::unlink WP 5.7
public function unlink()
{
if ($this->mysql === null)
{
return false;
}
$query = $this->mysql->prepare('DELETE FROM `' . $this->options['extras']['prefix'] . 'cache_data` WHERE `id` = :id');
$query->bindValue(':id', $this->id);
$query2 = $this->mysql->prepare('DELETE FROM `' . $this->options['extras']['prefix'] . 'items` WHERE `feed_id` = :id');
$query2->bindValue(':id', $this->id);
return $query->execute() && $query2->execute();
}