Issues

ZF-11824: Zend_Cache_Backend_File test() doesn't allow pass of $doNotTestCacheValidity

Issue Type: Bug Created: 2011-10-14T13:02:17.000+0000 Last Updated: 2012-01-08T16:03:36.000+0000 Status: Closed Fix version(s): Reporter: Ashley White (thinkle) Assignee: Alexander Veremyev (alexander) Tags: - Zend_Cache

  • cache
  • state:need-feedback
  • zf-caretaker-adamlundrigan

Related issues: Attachments:

Description

The public method for test() doesn't allow you to set whether to test against the time as the protected method _test() does.

Suggested fix:

<pre class="highlight">
    public function test($id, $doNotTestCacheValidity = false)
    {
        clearstatcache();
        return $this->_test($id, $doNotTestCacheValidity);
    }

Comments

Posted by Ashley White (thinkle) on 2011-10-14T13:03:58.000+0000

Added formatting to code

Posted by Marc Bennewitz (private) (mabe) on 2012-01-08T16:03:36.000+0000

The public method "test" only has one argument defined by Zend_Cache_Backend_Interface and can't be changed.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts