Xcache using request_time instead of method call time?

14 views
Skip to first unread message

thrgl

unread,
May 19, 2014, 6:56:44 AM5/19/14
to xca...@googlegroups.com
Hi there!

I would like to ask about ttl of xcached properties. Let's look at the example below:

sleep(5);
xcache_set('some_key', 'some_data', 7);

and my question would be. Why it is only being cached for 2 seconds instead of 7? If its is connected to request_time is , could you tell me what was the reason behind doing this.
Thanks in advance !

Xuefer[mOo]

unread,
Jun 10, 2014, 4:21:24 AM6/10/14
to xca...@googlegroups.com

It is to save a call to gettimeofday() syscall. most php page should finish in short time unless you use it for cli
Reply all
Reply to author
Forward
0 new messages