system/libary/cache.php
/**
     * Delete an item from cache file
     *
     * @param string $key
     * @return string|bool
     */
Delete an item from cache file
@param string $key
@return string|bool
Delete an item from cache file @param string $key @return string|bool
public function delete($key)
    {
        $cacheContent = $this->load_cache();
        if (is_array($cacheContent)) {
            if (isset($cacheContent[$key])) {
                unset($cacheContent[$key]);
                $cacheContent = json_encode($cacheContent);
                file_put_contents($this->_getCacheDir(), $cacheContent);
            } else {
                exit("Hata" . "delete() - Key {" . $key . "} bulunamadı");
            }
        }
    }
public function delete ( $ key ) { $ cacheContent = $ this -> load_cache ( ) ; if ( is_array ( $ cacheContent ) ) { if ( isset ( $ cacheContent [ $ key ] ) ) { unset ( $ cacheContent [ $ key ] ) ; $ cacheContent = json_encode ( $ cacheContent ) ; file_put_contents ( $ this -> _getCacheDir ( ) , $ cacheContent ) ; } else { exit ( " Hata " . " delete() - Key { " . $ key . " } bulunamadı" ) ; } } }
Delete an item from cache file
 @param string $key
 @return string|bool
Delete an item from cache file @param string $key @return string|bool