instead of the substr(), we could md5():

```php
unset($params['q'] ...)
sort($params)
$cid = md5(serialize($params));
```