<?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>lots of &#039;duplicate entry&#039; when Horde_Cache is enabled</title> 
  <pubDate>Fri, 10 Apr 2026 17:02:40 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/6410</link> 
  <atom:link rel="self" type="application/rss+xml" title="lots of &#039;duplicate entry&#039; when Horde_Cache is enabled" href="https://bugs.horde.org/ticket/6410/rss" /> 
  <description>lots of &#039;duplicate entry&#039; when Horde_Cache is enabled</description> 
 
   
   
  <item> 
   <title>I have just downloaded Horde 3.2-RC2 and IMP 4.2-RC2 and get</title> 
   <description>I have just downloaded Horde 3.2-RC2 and IMP 4.2-RC2 and get them working, everything seems fine.



Then i created horde_cache table and enabled Horde_Cache with SQL-based storage. Values are:

cache.default_lifetime: 86400

cache.driver: SQL-based storage

cache.params.driverconfig: Horde defaults

cache.params.table: horde_cache

cache.params.use_memorycache: none



after i enabled some cache using on IMP, just like:



Server Tab

server.cachejs: true

server.cachejsparams.timeout: 86400

server.cachejsparams.mtime: NOT checked

server.cachecss: true

server.cachecssparams.timeout: 86400

server.cachecssparams.mtime: NOT checked



Mailbox and Fetchmail Tab

use_mboxcache: Yes

mboxcache.use_compress: No

mboxcache.preview_size: 1000

mboxcache.lifetime: 259200

use_mlistcache: Yes

mlistcache.lifetime: 604800





After these changes, Horde/IMP appears to be working fine, there&#039;s no error on the browser, everything seems to be working just fine. But on logs, i got a REAL LOT of error messages on horde_cache tables.



I got a few SELECT errors, which seems to have an empty cache_id parameter, just like:





Mar  8 21:42:01 f8 horde[25265]: [imp] DB Error: mismatch: SELECT cache_id, cache_timestamp FROM horde_cache WHERE cache_id =   [DB Error: mismatch] [pid 25265 on line 243 of &quot;/home/httpd/html/horde/lib/Horde/Cache/sql.php&quot;]



Mar  8 21:42:01 f8 horde[25265]: [imp] DB Error: mismatch: SELECT cache_id, cache_timestamp FROM horde_cache WHERE cache_id =   [DB Error: mismatch] [pid 25265 on line 243 of &quot;/home/httpd/html/horde/lib/Horde/Cache/sql.php&quot;]





and after those SELECT errors, i usually got a REAL LOT of INSERT errors:



Mar  8 21:41:11 f8 horde[25269]: [imp] DB Error: constraint violation: INSERT INTO horde_cache (cache_id, cache_timestamp, cache_data) VALUES (&#039;e629f174ffe682593097290b886eaae2&#039;, 1205023271, 0) [nativecode=1062 ** Duplicate entry &#039;e629f174ffe682593097290b886eaae2&#039; for key 1] [pid 25269 on line 198 of &quot;/home/httpd/html/horde/lib/Horde/Cache/sql.php&quot;]



Mar  8 21:41:11 f8 horde[25269]: [imp] DB Error: constraint violation: INSERT INTO horde_cache (cache_id, cache_timestamp, cache_data) VALUES (&#039;9f1846117c7ec45bb5c0cd5f8f4e8f51&#039;, 1205023271, 0) [nativecode=1062 ** Duplicate entry &#039;9f1846117c7ec45bb5c0cd5f8f4e8f51&#039; for key 1] [pid 25269 on line 198 of &quot;/home/httpd/html/horde/lib/Horde/Cache/sql.php&quot;]



Mar  8 21:41:11 f8 horde[25269]: [imp] DB Error: constraint violation: INSERT INTO horde_cache (cache_id, cache_timestamp, cache_data) VALUES (&#039;4f921cb30288fa042067d6498244c86c&#039;, 1205023271, 0) [nativecode=1062 ** Duplicate entry &#039;4f921cb30288fa042067d6498244c86c&#039; for key 1] [pid 25269 on line 198 of &quot;/home/httpd/html/horde/lib/Horde/Cache/sql.php&quot;]



Mar  8 21:41:11 f8 horde[25269]: [imp] DB Error: constraint violation: INSERT INTO horde_cache (cache_id, cache_timestamp, cache_data) VALUES (&#039;1b663801ffa1e296fcaf1be03d74957e&#039;, 1205023271, 0) [nativecode=1062 ** Duplicate entry &#039;1b663801ffa1e296fcaf1be03d74957e&#039; for key 1] [pid 25269 on line 198 of &quot;/home/httpd/html/horde/lib/Horde/Cache/sql.php&quot;]





As I was using this horde/imp for testing somethings, i imagined, somehow, i could have screwed up some table data, so i logout, cleaned ALL tables, log the very first time with an user ... and there were the same errors described above. So, it wasn&#039;t being caused by some screwed data on some table.



</description> 
   <pubDate>Sun, 09 Mar 2008 00:48:24 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6410#t43601</link> 
  </item> 
   
  <item> 
   <title>I have just committed a test fix for this issue, please see </title> 
   <description>I have just committed a test fix for this issue, please see framework/Cache/Cache/sql.php from CVS HEAD version 1.15.



http://cvs.horde.org/diff.php/framework/Cache/Cache/sql.php?r1=1.14&amp;r2=1.15&amp;ty=u



Would you please test and see if you have any more of these errors?</description> 
   <pubDate>Wed, 12 Mar 2008 21:35:00 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6410#t43773</link> 
  </item> 
   
  <item> 
   <title>Well ... there&#039;s no &#039;duplicate entry&#039; errors anymore. I acti</title> 
   <description>Well ... there&#039;s no &#039;duplicate entry&#039; errors anymore. I activated cache in horde and imp config, seems it&#039;s OK.



altough, after enabling Cache again, seems i found another bug. When i enable cachecss in IMP configuration, everything got screwed .... if i disable it and simply hit Refresh, everything goes back to normal again. Please watch screenshot, it&#039;s the login page. I have modified the template to include a dropdown box, but that&#039;s the only modification i have done. I havent changed anything css related !



</description> 
   <pubDate>Wed, 12 Mar 2008 21:59:55 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6410#t43776</link> 
  </item> 
   
  <item> 
   <title>but i think it&#039;s a IMP problem now .... if i enable other ca</title> 
   <description>but i think it&#039;s a IMP problem now .... if i enable other cache functions, even in IMP, like:



cachejs

use_mboxcache

use_mlistcache



everything seems to work fine. The problem seems to be only cachecss, and may be something IMP-related, not horde cache structure anymore.



</description> 
   <pubDate>Wed, 12 Mar 2008 22:10:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6410#t43777</link> 
  </item> 
   
  <item> 
   <title>I have cachecss enabled in my test environment but I&#039;m not a</title> 
   <description>I have cachecss enabled in my test environment but I&#039;m not able to reproduce your behavior.  Do you have any other information you can think of to help me see the same behavior?  Are you running RC2 or a CVS checkout?</description> 
   <pubDate>Wed, 12 Mar 2008 22:16:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6410#t43778</link> 
  </item> 
   
  <item> 
   <title>I&#039;m running both horde and IMP RC2



Horde: 3.2-RC2

Imp: H</title> 
   <description>I&#039;m running both horde and IMP RC2



Horde: 3.2-RC2

Imp: H3 (4.2-RC2)



well .... is it possible to run a CVS checkout over this RC2 tree ?? Should it keep working, or there were too many changes ?

</description> 
   <pubDate>Wed, 12 Mar 2008 22:19:55 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6410#t43779</link> 
  </item> 
   
  <item> 
   <title>Our Release Candidates are pulled from the FRAMEWORK_3 branc</title> 
   <description>Our Release Candidates are pulled from the FRAMEWORK_3 branch so if you check that branch out you&#039;ll be very close indeed to the RC2 you have.



The alternative would be to wait for the next RC to drop and then retest.  Ideally it would be great if you could investigate on your own and try to track down the problem within the PHP code.</description> 
   <pubDate>Wed, 12 Mar 2008 22:22:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6410#t43780</link> 
  </item> 
   
  <item> 
   <title>i would love to track this and help you solve the problem in</title> 
   <description>i would love to track this and help you solve the problem instead of simply reporting the bug .....



unfortunelly, my php skills are enough only to modify some templates .... nothing more than that.



i&#039;ll try to checkout CVS over my RC2 tree and do some more extra testings .... probably i&#039;ll comment something tomorrow</description> 
   <pubDate>Wed, 12 Mar 2008 22:25:17 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6410#t43781</link> 
  </item> 
   
  <item> 
   <title>This sort of looks like a browser caching issue.  Some brows</title> 
   <description>This sort of looks like a browser caching issue.  Some browsers (for example, IE) are notoriously bad when it comes to updating cached content.  In any case, this is a different issue than what Ben resolved so a separate ticket should be opened if the behavior persists in the future.</description> 
   <pubDate>Wed, 12 Mar 2008 22:33:44 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6410#t43782</link> 
  </item> 
   
  <item> 
   <title>OK guys, thanks. I&#039;ll investigate this CSS stuff in CVS code</title> 
   <description>OK guys, thanks. I&#039;ll investigate this CSS stuff in CVS code. If it&#039;s really happening, i&#039;ll issue a new ticket.



Thanks and good night.</description> 
   <pubDate>Wed, 12 Mar 2008 22:48:24 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6410#t43783</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
