<?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>&quot;DELETE FROM horde_cache&quot; error</title> 
  <pubDate>Fri, 10 Apr 2026 03:14:14 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/7701</link> 
  <atom:link rel="self" type="application/rss+xml" title="&quot;DELETE FROM horde_cache&quot; error" href="https://bugs.horde.org/ticket/7701/rss" /> 
  <description>&quot;DELETE FROM horde_cache&quot; error</description> 
 
   
   
  <item> 
   <title>From time to time i got the following entrie in my horde.log</title> 
   <description>From time to time i got the following entrie in my horde.log file



HORDE [error] [horde] DB Error: mismatch: DELETE FROM horde_cache WHERE cache_expiration &lt;   AND cache_expiration  = 0 [DB Error: mismatch] [pid 9579 on line 395 of &quot;/var/www/horde/lib/Horde/Cache/sql.php&quot;]



it seems there is a missing value for cache_expiration, also my cache table is now near 100MB</description> 
   <pubDate>Tue, 18 Nov 2008 08:21:42 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7701#t50830</link> 
  </item> 
   
  <item> 
   <title>I really have no idea.  This is the query:



        $query</title> 
   <description>I really have no idea.  This is the query:



        $query = &#039;DELETE FROM &#039; . $this-&gt;_params[&#039;table&#039;]

            . &#039; WHERE cache_expiration &lt; ? AND cache_expiration != 0&#039;;

        $values = array(time());

        $result = $this-&gt;_write_db-&gt;query($query, $values);



I&#039;m not the DB expert, but that looks OK to me (unless time() is really returning an empty string). 



</description> 
   <pubDate>Thu, 20 Nov 2008 02:57:35 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7701#t50863</link> 
  </item> 
   
  <item> 
   <title>&gt;         $query = &#039;DELETE FROM &#039; . $this-&gt;_params[&#039;table&#039;]
</title> 
   <description>&gt;         $query = &#039;DELETE FROM &#039; . $this-&gt;_params[&#039;table&#039;]

&gt;             . &#039; WHERE cache_expiration &lt; ? AND cache_expiration != 0&#039;;



Try switching &quot;!=&quot; to &quot;&lt;&gt;&quot;.  The &#039;!&#039; might be confusing the prepare() function since &#039;!&#039; is a valid placeholder.</description> 
   <pubDate>Thu, 20 Nov 2008 06:55:17 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7701#t50867</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title> 
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/framework/Cache/Cache/sql.php?r1=1.20&amp;r2=1.21&amp;ty=u</description> 
   <pubDate>Sat, 22 Nov 2008 03:57:39 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7701#t50907</link> 
  </item> 
   
  <item> 
   <title>Change made - can the reporter please test?</title> 
   <description>Change made - can the reporter please test?</description> 
   <pubDate>Sat, 22 Nov 2008 03:58:17 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7701#t50908</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title> 
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/framework/Cache/Cache/sql.php?r1=1.12.2.9&amp;r2=1.12.2.10&amp;ty=u</description> 
   <pubDate>Sat, 22 Nov 2008 03:58:42 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7701#t50909</link> 
  </item> 
   
  <item> 
   <title>I&#039;m testing right now, i report back when eighter horde_cach</title> 
   <description>I&#039;m testing right now, i report back when eighter horde_cache table get smaller or the error still appears in the log</description> 
   <pubDate>Tue, 25 Nov 2008 07:16:58 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7701#t50933</link> 
  </item> 
   
  <item> 
   <title>No feedback, assuming resolved.</title> 
   <description>No feedback, assuming resolved.</description> 
   <pubDate>Sun, 14 Dec 2008 15:57:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7701#t51242</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
