Partner and Community Forums
Windows Cache Extension for PHP
Last post Jan 17, 2011 02:43 PM by slhungry
Jan 16, 2011 09:10 PM|slhungry|LINK
session.save_handler = wincache
i set session to be stored in wincache, but it seems wincache creates a file wincache_session_1_93823.tmp in my php session directory anyway and the size of the file is the max memory limit. i thought wincache was in memory so why is it creating and storing
it in a file? or am i missing something in the configuration?
Jan 17, 2011 06:34 AM|ksingla|LINK
Other than session cache, all caches only live in memory and not on disk. Reason session cache is backed by a file is to make sessions survive service restarts, IIS worker process restarts, FastCGI application pool resets etc. Loosing a session just because
something restarted on server is not good experience. Right now there is no way to turn this OFF.
Jan 17, 2011 06:50 AM|slhungry|LINK
oic, that makes sense. so does it queue the updates and does a batch update to file to minimize IO? just curious. thanks!
Jan 17, 2011 02:37 PM|ksingla|LINK
File gets memory mapped and wincache just update the memory. OS controls actual writes to the file and it does batch update when copy-on-write is not enabled as is done in WinCache.
Jan 17, 2011 02:43 PM|slhungry|LINK
oh so it works kinda like the pagefile in windows. cool stuff, thanks for the insight!