Closed (won't fix)
Project:
Memcache API and Integration
Version:
7.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Mar 2012 at 23:18 UTC
Updated:
23 Jan 2017 at 12:53 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
doublejosh commentedWould be very nice to have a utility button to "Clear Leftover Database Cache" within admin settings.
Personally, was having problems with database backups on local dev environments, and it took a while to realize why. Assume there are plenty of other weird consequences like this when moving between environments. #1896142: PHP Fatal error: Unsupported operand types
Mikeytown2's point about reducing database backup size is also certainly a valid reason.
BTW: Here's how to do this from the command line...
mysql -uUSER -pPASS --execute="SELECT concat('TRUNCATE TABLE ', TABLE_NAME, ';') FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'DB_NAME' AND TABLE_NAME LIKE 'cache%'" | sed 1d | mysql -uUSER -pPASS DB_NAMEChange: USER, PASS, and DB_NAME
Comment #2
doublejosh commentedComment #3
markpavlitski commentedI can't see this feature making it into memcache, however this patch adds a note to README.txt telling users how to clear these tables manually.
Comment #4
doublejosh commentedAt least it's documented :)
Might mention the technique for clearing all cache tables at once with one command. Each person who enables Memcache on an existing site will have to go through this step, and I assume most sites don't start out with in-memory caching.
Comment #4.0
doublejosh commentedUpdated issue summary.
Comment #5
jeremy commentedI wouldn't be opposed to seeing this go in as a drush command, together with functionality like #1993170: Add Drush command to retrieve Memcached values. It'll land after 7.x-1.1 is released.
Comment #6
jeremy commentedNot really a memcache feature, closing.