By JorgeeFG


2019-03-12 18:46:37 8 Comments

I saved a cache entry using cache_set(). How can I clear this entry using Drush?

1 comments

@Adrian Cid Almaguer 2019-03-12 19:10:58

You can create a custom drush command to call the cache_clear_all function or just use:

drush ev "cache_clear_all('my_module', 'cache', TRUE);"

You can read more about cache_clear_all in A Beginner's Guide to Caching Data in Drupal 7

Related Questions

Sponsored Content

1 Answered Questions

[SOLVED] Clear all "pages" cache

  • 2018-08-15 09:59:01
  • arrubiu
  • 150 View
  • 0 Score
  • 1 Answer
  • Tags:   8 caching

3 Answered Questions

[SOLVED] Drupal 8, clear specific cache

  • 2017-03-10 10:33:55
  • O V
  • 2982 View
  • 6 Score
  • 3 Answer
  • Tags:   8 drush

1 Answered Questions

[SOLVED] How to clear or update only anonymous cache from module?

  • 2015-09-12 15:27:14
  • Alex D.
  • 423 View
  • 0 Score
  • 1 Answer
  • Tags:   nodes caching

6 Answered Questions

[SOLVED] How to clear cache externally?

  • 2012-09-17 19:00:23
  • Daniel Holm
  • 4120 View
  • 7 Score
  • 6 Answer
  • Tags:   7 views caching

1 Answered Questions

[SOLVED] How to clear page cache without rebuilding other caches

  • 2015-08-13 08:41:20
  • Benjen
  • 1197 View
  • 1 Score
  • 1 Answer
  • Tags:   drush caching

1 Answered Questions

[SOLVED] Drush clear cache without the codebase

1 Answered Questions

[SOLVED] Can I clear cache only for particular domain / URL?

  • 2013-02-05 13:07:50
  • sobi3ch
  • 1185 View
  • 1 Score
  • 1 Answer
  • Tags:   caching subsites

1 Answered Questions

[SOLVED] Selectively clear cache, without AdminMenu

  • 2013-04-08 19:22:52
  • Kyle Schmidt
  • 213 View
  • 1 Score
  • 1 Answer
  • Tags:   caching

2 Answered Questions

[SOLVED] Clear cache doesn't clear the cache tables?

  • 2012-03-08 15:43:13
  • chefnelone
  • 15977 View
  • 10 Score
  • 2 Answer
  • Tags:   caching

3 Answered Questions

[SOLVED] How to clear cache bins via the admin interface

  • 2011-06-17 11:02:31
  • Jeremy French
  • 1133 View
  • 1 Score
  • 3 Answer
  • Tags:   6 caching

Sponsored Content