Report from the field that running this command is not clearing memcache.

Comments

gagarine’s picture

Title: Confirm that memcache compatible with Drush cc command » memcache is not cleared on "drush cc"
Category: task » bug
Issue tags: +drush

Confirmed.
drush cc doesn't clear memcache. I need to clear memcache from the admin UI.

achton’s picture

Subscribing.

JeremyFrench’s picture

I thought I had this problem, but it turned out to be my sites minimum cache time.

If you clear though the admin, memcache will set a session variable so that it looks like things are cleared immediately (they are for the admin user). Drush will not do this as there is no session.

Setting my sites 'cache_lifetime' variable to 0 resolved the issue.

catch’s picture

edit, bad idea

catch’s picture

Please try the patch at #1103478: Skip some wildcard fetches to see if it fixes this issue for you.

catch’s picture

Status: Active » Postponed (maintainer needs more info)
catch’s picture

catch’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)
c960657’s picture

Title: memcache is not cleared on "drush cc" » memcache is not cleared on "drush cc theme"
Status: Closed (duplicate) » Needs work

Reopening issue and moving from Memcache module to Drush (I search for duplicates but did not find any).

The problem is that drush_cache_clear_theme_registry() does not go through cache_clear_all() but instead tries to delete the cache entries using SQL, but this fails if Memcache or some other cache handler is used.

c960657’s picture

Project: Memcache API and Integration » Drush
Version: 6.x-1.x-dev » All-versions-4.x-dev
Component: Code » Core Commands
c960657’s picture

Status: Needs work » Needs review
StatusFileSize
new487 bytes
moshe weitzman’s picture

Status: Needs review » Reviewed & tested by the community

Thanks ... Bonus points to anyone who upgrades our cache commands to be compatible with Drupal 8.

greg.1.anderson’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new458 bytes

Looking at RTBC issues this morning, and I notice this one. I re-rolled the patch, but do not use memcache, so did not test.

c960657’s picture

Patch still works with Drupal 6 + Drush 5.7.

moshe weitzman’s picture

Version: All-versions-4.x-dev » 8.x-6.x-dev
Status: Needs review » Needs work

Patch looks good but needs to be ported to D8 as well which has an OO cache api.

moshe weitzman’s picture

Status: Needs work » Fixed

OK, I'll fix this without holding folks hostage to do some D8 for us :). Committed to 5 and 6.

Status: Fixed » Closed (fixed)
Issue tags: -drush

Automatically closed -- issue fixed for 2 weeks with no activity.