Skip to content

Commit

Permalink
clear user cache when using APCStorage
Browse files Browse the repository at this point in the history
right now the `clear()` method of APCStorage only clears the system cache. this only contains cached files and not the actual content that was placed there using this API. see details here: http://php.net/manual/en/function.apc-clear-cache.php
  • Loading branch information
aoberoi committed Feb 27, 2015
1 parent 10dcc52 commit 754eb5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/APCStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function eliminate($key)
*/
public function clear()
{
apc_clear_cache();
apc_clear_cache('user');
}

/**
Expand Down

0 comments on commit 754eb5e

Please sign in to comment.