wordpress-owncloud-integration
wordpress-owncloud-integration copied to clipboard
sync loop
atm the sync sometimes gets into a file exchanging loop if the 2way sync is enabled.
When adding a new file it triggers wp_insert_attachment
which furthermore triggers the sync-to-owncloud process. The file inserted in Wordpress coming from OC gets re-inserted into OC so it's doubled.
Luckily wordpress renames duplicate files so the loop gets interrupted.
Need to investigate haw the hooks and actions can be triggered in an order to not get into this loop