<small id='nmi5b'></small><noframes id='nmi5b'>

<legend id='nmi5b'><style id='nmi5b'><dir id='nmi5b'><q id='nmi5b'></q></dir></style></legend>
<tfoot id='nmi5b'></tfoot>
    • <bdo id='nmi5b'></bdo><ul id='nmi5b'></ul>

      1. <i id='nmi5b'><tr id='nmi5b'><dt id='nmi5b'><q id='nmi5b'><span id='nmi5b'><b id='nmi5b'><form id='nmi5b'><ins id='nmi5b'></ins><ul id='nmi5b'></ul><sub id='nmi5b'></sub></form><legend id='nmi5b'></legend><bdo id='nmi5b'><pre id='nmi5b'><center id='nmi5b'></center></pre></bdo></b><th id='nmi5b'></th></span></q></dt></tr></i><div id='nmi5b'><tfoot id='nmi5b'></tfoot><dl id='nmi5b'><fieldset id='nmi5b'></fieldset></dl></div>
      2. Zend 框架清除缓存

        Zend Framework Clearing Cache(Zend 框架清除缓存)

        <small id='7LmVp'></small><noframes id='7LmVp'>

            <bdo id='7LmVp'></bdo><ul id='7LmVp'></ul>
            <i id='7LmVp'><tr id='7LmVp'><dt id='7LmVp'><q id='7LmVp'><span id='7LmVp'><b id='7LmVp'><form id='7LmVp'><ins id='7LmVp'></ins><ul id='7LmVp'></ul><sub id='7LmVp'></sub></form><legend id='7LmVp'></legend><bdo id='7LmVp'><pre id='7LmVp'><center id='7LmVp'></center></pre></bdo></b><th id='7LmVp'></th></span></q></dt></tr></i><div id='7LmVp'><tfoot id='7LmVp'></tfoot><dl id='7LmVp'><fieldset id='7LmVp'></fieldset></dl></div>
            <tfoot id='7LmVp'></tfoot>
            <legend id='7LmVp'><style id='7LmVp'><dir id='7LmVp'><q id='7LmVp'></q></dir></style></legend>
                    <tbody id='7LmVp'></tbody>

                  本文介绍了Zend 框架清除缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用此代码在 zend 框架中缓存数组:

                  I'm using this code to cache an array in zend framework :

                  $frontendOptions = array(
                      'lifetime' => 24 * 3600 * 7, // cache lifetime of 7 day
                      'automatic_serialization' => true
                  );
                  
                  $backendOptions = array(
                      // Directory where to put the cache files
                      'cache_dir' => APPLICATION_PATH .'/../tmp'
                  );
                  
                  // getting a Zend_Cache_Core object
                  $cache = Zend_Cache::factory('Core',
                      'File',
                      $frontendOptions,
                      $backendOptions);
                  
                  $CacheName = ('VOUCHER_MANAGEMENT');
                  
                  $CacheResult = $cache->load($CacheName);
                  
                  if($CacheResult === false)
                      //make cache
                  else 
                      //use cache
                  

                  现在如何手动清除缓存?

                  Now how can I clear the cache manually?

                  推荐答案

                  根据文档 一次调用 remove() 方法就足够了,即删除特定的缓存项:

                  According to the documentation a single call of the remove() method would suffice, i.e. to remove a specific cache item:

                  $cache->remove($CacheName);
                  

                  如果要清理过时的缓存项,则调用clean()方法:

                  If you want to clean the outdated cache items, then call the clean() method:

                  $cache->clean(Zend_Cache::CLEANING_MODE_OLD);
                  

                  要删除缓存中的所有项目:

                  To remove all items in the cache:

                  $cache->clean(Zend_Cache::CLEANING_MODE_ALL);
                  

                  这篇关于Zend 框架清除缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)

                  1. <i id='XPL6g'><tr id='XPL6g'><dt id='XPL6g'><q id='XPL6g'><span id='XPL6g'><b id='XPL6g'><form id='XPL6g'><ins id='XPL6g'></ins><ul id='XPL6g'></ul><sub id='XPL6g'></sub></form><legend id='XPL6g'></legend><bdo id='XPL6g'><pre id='XPL6g'><center id='XPL6g'></center></pre></bdo></b><th id='XPL6g'></th></span></q></dt></tr></i><div id='XPL6g'><tfoot id='XPL6g'></tfoot><dl id='XPL6g'><fieldset id='XPL6g'></fieldset></dl></div>
                      <tfoot id='XPL6g'></tfoot>
                      <legend id='XPL6g'><style id='XPL6g'><dir id='XPL6g'><q id='XPL6g'></q></dir></style></legend>
                        <tbody id='XPL6g'></tbody>

                      • <small id='XPL6g'></small><noframes id='XPL6g'>

                          • <bdo id='XPL6g'></bdo><ul id='XPL6g'></ul>