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?
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.
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.
slhungry
10 Posts
wincache_session file?
Jan 16, 2011 09:10 PM|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?
ksingla
1138 Posts
Microsoft
Re: wincache_session file?
Jan 17, 2011 06:34 AM|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.
Thanks,
Kanwal
slhungry
10 Posts
Re: wincache_session file?
Jan 17, 2011 06:50 AM|LINK
oic, that makes sense. so does it queue the updates and does a batch update to file to minimize IO? just curious. thanks!
ksingla
1138 Posts
Microsoft
Re: wincache_session file?
Jan 17, 2011 02:37 PM|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.
Thanks,
Kanwal
slhungry
10 Posts
Re: wincache_session file?
Jan 17, 2011 02:43 PM|LINK
oh so it works kinda like the pagefile in windows. cool stuff, thanks for the insight!