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.

Source: https://doc.owncloud.org/server/8.0/admin_manual/configuration_server/occ_command.html

About SoCRaT

Software 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:

WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s