Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1352 Add Flush for Cache #1395

Merged
merged 15 commits into from
Oct 22, 2013
Prev Previous commit
Next Next commit
Updated
  • Loading branch information
dreamsxin committed Oct 18, 2013
commit ec8f79024de0741fe7dd8c34c1eacf97e7aeb248
2 changes: 1 addition & 1 deletion ext/cache/backend/apc.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Apc, flush){
PHALCON_INIT_NVAR(itkey);
it->funcs->get_current_key(it, itkey TSRMLS_CC);
if (likely(Z_TYPE_P(itkey) == IS_STRING)) {
ZVAL_STRINGL(key, Z_STRVAL_P(itkey) + 5, Z_STRLEN_P(itkey) - 5, 1);
ZVAL_STRINGL(key, Z_STRVAL_P(itkey), Z_STRLEN_P(itkey), 1);
phalcon_call_func_p1_noret("apc_delete", key);
}
#endif
Expand Down
2 changes: 1 addition & 1 deletion ext/cache/backend/memcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Memcache, decrement){
PHP_METHOD(Phalcon_Cache_Backend_Memcache, flush){

zval *memcache, *options, *special_key;
zval *keys, *real_key = NULL;
zval *keys;
HashPosition pos;
zval **value;

Expand Down