How to rebuild the cache for ownCloud

This can be done using the ownCloud Console (occ).

All you need is to go where the web app is, which is usually /var/www/owncloud and then run:

sudo -u www-data php occ  files:scan –all

This will rebuild the whole files cache. This is the solution for data that sometimes appear as existing on the filesystem, but actually they don’t and are just orphan entries in the DB.


About SoCRaT

Systems Engineer, OSS & Linux Geek
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s