5

Every time I create a database backup, I find myself instinctively clearing the cache first. My gut tells me that any cached data would be unnecessarily included in the export.

Is this helpful, or am I just being OCD?

enter image description here

6

Is this helpful, or am I just being OCD?

Completely OCD. :)

The database backup class already excludes unnecessary tables like asset indexing data, sessions, template caches, etc. during a backup.

https://github.com/craftcms/cms/tree/master-v2/src/etc/db/DbBackup.php#L46

| improve this answer | |
  • 1
    Boom... and I see all three templatecache tables listed there. Didn't even think about assets or sessions! – Lindsey D Jan 28 '16 at 19:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.