Development

Changeset 24607

You must first sign up to be able to contribute.

Changeset 24607

Show
Ignore:
Timestamp:
11/30/09 22:39:08 (3 years ago)
Author:
FabianLange
Message:

[1.2, 1.3, 1.4] no longer adding duplicate entries in sfMemcacheCache.class metadata cache when key is already existing (fixes #7602)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.2/lib/cache/sfMemcacheCache.class.php

    r23925 r24607  
    259259    else 
    260260    { 
    261       $keys[] = $this->getOption('prefix').$key; 
     261      if (!in_array($this->getOption('prefix').$key, $keys)) 
     262      { 
     263        $keys[] = $this->getOption('prefix').$key; 
     264      } 
    262265    } 
    263266 
  • branches/1.3/lib/cache/sfMemcacheCache.class.php

    r23925 r24607  
    259259    else 
    260260    { 
    261       $keys[] = $this->getOption('prefix').$key; 
     261      if (!in_array($this->getOption('prefix').$key, $keys)) 
     262      { 
     263        $keys[] = $this->getOption('prefix').$key; 
     264      } 
    262265    } 
    263266 
  • branches/1.4/lib/cache/sfMemcacheCache.class.php

    r23925 r24607  
    259259    else 
    260260    { 
    261       $keys[] = $this->getOption('prefix').$key; 
     261      if (!in_array($this->getOption('prefix').$key, $keys)) 
     262      { 
     263        $keys[] = $this->getOption('prefix').$key; 
     264      } 
    262265    } 
    263266