Zend_Cache_Backend_Sqlite vs Zend_Cache_Backend_File
Posted
by Alekc
on Stack Overflow
See other posts from Stack Overflow
or by Alekc
Published on 2010-06-08T08:15:44Z
Indexed on
2010/06/08
11:12 UTC
Read the original article
Hit count: 322
Hi,
Currently i'm using Zend_Cache_Backend_File for caching my project (especially responses from external web services). I was wandering if I could find some benefit in migrating the structure to Zend_Cache_Backend_Sqlite.
Possible advantages are:
- File system is well-ordered (only 1 file in cache folder)
- Removing expired entries should be quicker (my assumption, since zend wouldn't need to scan internal-metadatas for expiring date of each cache)
Possible disadvantages:
- Finding record to read (with files zend check if file exists based on filename and should be a bit quicker) in term of speed.
I've tried to search a bit in internet but it seems that there are not a lot of discussion about the matter.
What do you think about it?
Thanks in advance.
© Stack Overflow or respective owner