lighttpd forum XCache > How can delete Cached content?

Posted by John (Guest)
on 25.05.2008 00:00
Hi,

I need delete the cached content by XCache, and later recache this, 
because i have some problems with white pages.

How can do this?

Thanks.
Posted by Jeremy (Guest)
on 04.06.2008 12:13
John wrote:
> Hi,
> 
> I need delete the cached content by XCache, and later recache this, 
> because i have some problems with white pages.
> 
> How can do this?
> 
> Thanks.

Set
xcache.admin.enable_auth = Off
then you 'll be able to use
xcache_clear_cache(XC_TYPE_VAR,0);
xcache_clear_cache(XC_TYPE_PHP,0);

( if you have set xcache_count to more than 1 you'll need to do :
xcache_clear_cache(XC_TYPE_VAR,1);
xcache_clear_cache(XC_TYPE_PHP,1);
etc )