Skip to content

Commit 0a5f9d8

Browse files
committed
Merge pull request #99 from LExpress/revert-94-apcu
Revert "Makes sfAPCCache compatible with APCu"
2 parents e62bd59 + 87fe4dd commit 0a5f9d8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/cache/sfAPCCache.class.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,9 @@ protected function getCacheInfo($key)
197197

198198
if (is_array($infos['cache_list']))
199199
{
200-
// Compatibility with APCu PHP 5.5+
201-
$infoKey = extension_loaded('apcu') ? 'key' : 'info';
202-
203200
foreach ($infos['cache_list'] as $info)
204201
{
205-
if ($this->getOption('prefix').$key == $info[$infoKey])
202+
if ($this->getOption('prefix').$key == $info['info'])
206203
{
207204
return $info;
208205
}

0 commit comments

Comments
 (0)