lighttpd forum XCache > Can two or more commandline PHP scripts share same XCache?

Posted by Grosen Friis (Guest)
on 06.08.2008 09:11
Hi

I am generating a system using PHP, where several PHP commandline 
scripts (Windows) run at the same time.

The reason is that PHP does not support threads and running several PHP 
commandline scripts simultaneously is a way to compensate for the lack 
of thread support in PHP.

Currently I use an underlying MySQL database to share some data across 
all running PHP commandline scripts. However, in some situations I 
should like to use XCache instead of MySQL.

I was able to install and make XCache work properly in combination with 
PHP 5.2.5, but it seems that cached data can only be used by the PHP 
script that originally generated the cache, It was not possible for PHP 
script-2 to get access to the cached data originally generated by PHP 
script-1.

Is there a way to make this work?

/Grosen Friis
Posted by moo XCache
on 07.08.2008 08:09
cli and the way you want is not supported by XCache, try php shm 
extensions (if it works for windows)
Posted by Grosen Friis (Guest)
on 07.08.2008 10:38
moo XCache wrote:
> cli and the way you want is not supported by XCache, try php shm 
> extensions (if it works for windows)

Hi moo XCache

Thank you for your answer, I will look at shm instead

/Grosen Friis