Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.6

Request #11227 php_mode variant of Container_file
Submitted: 2007-06-05 07:56 UTC
From: didi0dmc Assigned:
Status: Open Package: Cache (version 1.5.5RC4)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2007-06-05 07:56 UTC] didi0dmc (Dieter Rothacker)
Description: ------------ We may be able to get improved read performance of cache files (on the possible expense of slower writes), if we add another "mode" of operation to Container/file.php: (some pseudo code:) Instead of doing $cachedata = $this->decode(fread($fh, filesize($file))); the read could be implemented as: $cachedata = include($file); The save method would accordingly use something like: $cachedata = `var_export(func_get_arg(0), true)`; Obviously objects in the input data would have to be serialized first, this is probably the only real drawback.

Comments