KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
PHP 5.5 includes zend opcache by default, which basically means that almost nobody will use APC. But what to use instead of the user data cache part of APC (apc_store & apc_fetch & similar)? One use case where I really like to use APC user data cache are "versions" of static assets (javascript, css..). Whenever I reference static file, I add hash of its content into the url (e.g. <script src=/script.js> will became <script src=/script.js?v=hash>), so that browser always uses current version and can cache it permanently. I can imagine using redis or memcache to store the hashes of static files, but it seems silly to ask another process over network or socket just to get a hash of file content. APC user data cache (which is in shared memory and accessing it is almost as fast as accesing php variable) seems just the right thing to use for such data. So the question is: what to use in php 5.5 to cache small bits of data instead of APC?
Tags (comma-separated)
Save Edits
Cancel