<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Xcache breaks PHP CLI scripts</title> 
  <pubDate>Fri, 10 Apr 2026 19:28:20 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/10288</link> 
  <atom:link rel="self" type="application/rss+xml" title="Xcache breaks PHP CLI scripts" href="https://bugs.horde.org/ticket/10288/rss" /> 
  <description>Xcache breaks PHP CLI scripts</description> 
 
   
   
  <item> 
   <title>Hello,

I am using the Horde Framework version 4.0.6, and </title> 
   <description>Hello,

I am using the Horde Framework version 4.0.6, and set up Xcache as the caching backend. I found out my Horde logs were being spammed by the following messages:

----
2011-06-28T14:43:57+02:00 WARN: HORDE PHP ERROR: xcache_get(): xcache.var_size is either 0 or too small to enable var data caching [pid 13972 on line 95 of &quot;/usr/share/php/Horde/Cache/Storage/Xcache.php&quot;]
2011-06-28T14:43:57+02:00 WARN: HORDE PHP ERROR: xcache_unset(): xcache.var_size is either 0 or too small to enable var data caching [pid 13972 on line 100 of &quot;/usr/share/php/Horde/Cache/Storage/Xcache.php&quot;]
2011-06-28T14:43:57+02:00 WARN: HORDE PHP ERROR: xcache_unset(): xcache.var_size is either 0 or too small to enable var data caching [pid 13972 on line 101 of &quot;/usr/share/php/Horde/Cache/Storage/Xcache.php&quot;]
2011-06-28T14:43:57+02:00 WARN: HORDE PHP ERROR: xcache_get(): xcache.var_size is either 0 or too small to enable var data caching [pid 13972 on line 39 of &quot;/usr/share/php/Horde/Cache/Storage/Xcache.php&quot;]
2011-06-28T14:43:57+02:00 WARN: HORDE [horde] PHP ERROR: xcache_set(): xcache.var_size is either 0 or too small to enable var data caching [pid 13972 on line 51 of &quot;/usr/share/php/Horde/Cache/Storage/Xcache.php&quot;]
2011-06-28T14:43:57+02:00 WARN: HORDE [horde] PHP ERROR: xcache_set(): xcache.var_size is either 0 or too small to enable var data caching [pid 13972 on line 51 of &quot;/usr/share/php/Horde/Cache/Storage/Xcache.php&quot;]
2011-06-28T14:43:58+02:00 WARN: HORDE [horde] PHP ERROR: xcache_set(): xcache.var_size is either 0 or too small to enable var data caching [pid 13972 on line 51 of &quot;/usr/share/php/Horde/Cache/Storage/Xcache.php&quot;]
------

These messages occured only when running one of Horde&#039;s CLI scripts in /usr/bin. Caching via the web server seems to work fine. It turned out that Xcache doesn&#039;t support PHP CLI, and won&#039;t do in the future. This seems to generate these notices.
http://xcache.lighttpd.net/ticket/228

When I disable the Xcache backend in Horde, PHP CLI scripts like horde-alarms run just fine without logfile spamming.

I tried a workaround by disabling Xcache in php.ini for the CLI, but that generates just another obvious error:
---
PHP Fatal error:  Call to undefined function xcache_set() in /usr/share/php/Horde/Cache/Storage/Xcache.php on line 51
---

The solution would propably for Horde be to disable Xcache when it is being called from the CLI.

Thank you,
Stan Hisken</description> 
   <pubDate>Tue, 28 Jun 2011 12:53:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10288#t65925</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

[jan] Don&#039;t </title> 
   <description>Changes have been made in Git for this ticket:

[jan] Don&#039;t use Xcache in CLI scripts (Bug #10288).
We probably need to exclude other drivers that don&#039;t support CLI too.

 2 files changed, 9 insertions(+), 3 deletions(-)
http://git.horde.org/horde-git/-/commit/f69a464965be1856332b09712ef9b5f09d3c78dc</description> 
   <pubDate>Sat, 15 Oct 2011 11:23:55 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10288#t68235</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
