Zend Framework

Zend_Cache EXAMPLES.txt is out of accordance with Frontend\Output.php

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 0.1.4
  • Fix Version/s: 0.1.5
  • Component/s: Zend_Cache
  • Labels:
    None

Description

EXAMPLES.txt says concerning "Output" frontend:

if ($cache->start($id)) {
// cache is not hit !

// Output you want to cache
for ($i=0;$i<10000;$i++) { echo($i); }

// store "captured" output into cache
$cache->end();
}

But Zend_Cache_Frontend_Output::start() method returns true when cache hit and false otherwise, so the function or example should be changed.

Activity

Hide
Fabien MARTY added a comment -

test script

Show
Fabien MARTY added a comment - test script
Hide
Fabien MARTY added a comment -

you are right (I attached a test script)

Show
Fabien MARTY added a comment - you are right (I attached a test script)

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: