Skip to content

Commit

Permalink
Hotfix broken builds since #9051
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelwhitton committed Jan 7, 2025
1 parent 59d9e3b commit 55a3a0e
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions source/content/addons/object-cache/howto/drupal.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,25 +119,25 @@ contributors: [cityofoaksdesign, carolynshannon, jms-pantheon, whitneymeredith]

</Alert>

<Accordion title="Database Cleanup (recommended)" id="database-cleanup-drupal" icon="lightbulb">
After enabling Redis, there are cache tables in the database that are no longer being used. Even when the Drupal cache is cleared, these tables will not be emptied. For sites that were live for awhile before Redis was enabled, there could be significant amounts of data in these tables. Removing this data could increase the speed of cloning, exporting, and backing up the database.
1. [Connect directly to MySQL](/guides/mariadb-mysql/mysql-access) and run the command below to view the cache:
```sql
SELECT table_name FROM information_schema.tables WHERE table_name LIKE 'cache%' AND table_name != 'cache_form';
```
This returns a list of all the cache tables in the database. These are safe to empty, but don't remove the tables themselves in case Redis is disabled in the future.
1. Run the command below on each table, replacing `<tablename>` with the name of the cache table, to empty the cache:
```sql
TRUNCATE TABLE `<tablename>`;
```
</Accordion>
<Accordion title="Database Cleanup (recommended)" id="database-cleanup-drupal" icon="lightbulb">

After enabling Redis, there are cache tables in the database that are no longer being used. Even when the Drupal cache is cleared, these tables will not be emptied. For sites that were live for awhile before Redis was enabled, there could be significant amounts of data in these tables. Removing this data could increase the speed of cloning, exporting, and backing up the database.

1. [Connect directly to MySQL](/guides/mariadb-mysql/mysql-access) and run the command below to view the cache:

```sql
SELECT table_name FROM information_schema.tables WHERE table_name LIKE 'cache%' AND table_name != 'cache_form';
```

This returns a list of all the cache tables in the database. These are safe to empty, but don't remove the tables themselves in case Redis is disabled in the future.

1. Run the command below on each table, replacing `<tablename>` with the name of the cache table, to empty the cache:

```sql
TRUNCATE TABLE `<tablename>`;
```

</Accordion>

## Drupal 7

Expand Down

0 comments on commit 55a3a0e

Please sign in to comment.