php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #57646 Caching
Submitted: 2007-05-03 10:06 UTC Modified: 2017-01-10 08:06 UTC
From: michael dot caplan at henryschein dot com Assigned:
Status: Suspended Package: SCA_SDO (PECL)
PHP Version: 5.2.1 OS: CentOS 4
Private report: No CVE-ID: None
 [2007-05-03 10:06 UTC] michael dot caplan at henryschein dot com
Description:
------------
It would be awesome if a caching layer could be implemented (either through custom hooks letting the end user implement such a solution, or a SDO native caching layer) to avoid overhead of producing service description requests on each request.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-05-03 11:49 UTC] mfp@php.net
You're right. We had one go at caching these generated files, but we didn't like our solution. Difficulties included deciding where to put the cached files (somewhere under htdocs  so that we can serve them in response to an http request...but some people don't want us to write files into htdocs) and deciding when to invalidate them (probably data and time, with the invalidate period in php.ini or some other config file..but exactly what would be best...).

I'm interested in your notion of hooks and what that would look like.

If you'd like to make some suggestions on the phpsoa group where other people can join in that would be good. 

If you
 [2007-05-04 09:08 UTC] michael dot caplan at henryschein dot com
For what it is worth, supporting object decorators might be a good way to go for allowing custom hooks.  One library that i think does decorators well is PEAR_Translation2 (http://pear.php.net/package/Translation2), and through the use of the decorator pattern offers a few different caching layers.
 [2017-01-10 08:06 UTC] kalle@php.net
-Status: Assigned +Status: Suspended -Assigned To: mfp +Assigned To:
 [2017-01-10 08:06 UTC] kalle@php.net
Suspending this report as the extension have not had a release for almost 9 years.  Please revive this if the extension once again shows life
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC