protected function cleanCache($item)
 {
     $urls = array();
     $base = \Uri::base(false);
     foreach ($this->_properties['relations'] as $property) {
         $subItems = $this->resolve($item, $property);
         foreach ($subItems as $subItem) {
             $urlEnhConfig = $subItem->behaviours('Nos\\Orm_Behaviour_Urlenhancer');
             if (!empty($urlEnhConfig)) {
                 foreach ($urlEnhConfig['enhancers'] as $enhancer_name) {
                     foreach (Tools_Enhancer::url_item($enhancer_name, $subItem) as $url) {
                         $cache_path = \Nos\FrontCache::getPathFromUrl($base, parse_url($url, PHP_URL_PATH));
                         $urls[] = $cache_path;
                     }
                 }
             }
         }
     }
     $urls = array_unique($urls);
     foreach ($urls as $url) {
         \Nos\FrontCache::forge($url)->delete();
     }
 }
<div class="pagination">
    <?php 
\Nos\I18n::current_dictionary('novius_glossary::common');
echo $count . ' ' . __('words');
$enhancerParams = array();
if (!empty($letter)) {
    $enhancerParams['letter'] = $letter;
}
?>

    <ul class="links">
        <?php 
for ($i = 1; $i <= $numPages; $i++) {
    $enhancerParams['page'] = $i;
    $url = \Nos\Tools_Enhancer::url('novius_glossary', $enhancerParams);
    $class = '';
    if ($i == $page) {
        $url = null;
        $class = 'active';
    }
    ?>
            <li class="<?php 
    echo $class;
    ?>
">
                <?php 
    if (!empty($url)) {
        ?>
                <a href="<?php 
        echo $url;
        ?>
<?php

if (empty($letters)) {
    return '';
}
?>
<ul class="letters">
    <?php 
foreach ($letters as $iletter) {
    $url = \Nos\Tools_Enhancer::url('novius_glossary', array('letter' => $iletter));
    $class = '';
    if ($iletter == $letter) {
        $url = null;
        $class = 'active';
    }
    ?>
        <li class="<?php 
    echo $class;
    ?>
">

            <?php 
    if (!empty($url)) {
        ?>
            <a href="<?php 
        echo $url;
        ?>
">
                <?php 
    }
    ?>