scache_rnclear

Description

bool scache_rnclear(resource session, string path)
bool $SCacheConnection->rnclear(string path)

scache_rnclear clears given path and all it's descending nodes from theirs contents.

Parameters

session
Session resource returned from scache_open, scache_reset or scache_connect
path
Slash (/) separated null-terminated path on backend's session tree

Return values

TRUE on success. FALSE on failure. If node was already empty or nonexisting one, TRUE is returned, but error code is set to SCERR_NOTEXIST.

In case of failure, error codes resolvable by scache_lasterr is one of below :

Example

<?php
	
?>