/** * * Can be queried with an ajax request to trigger the filesystem sync. It returns a FormResponse status message * to display in the CMS * * @return null */ public function doSync() { $securedRoot = FileSecured::getSecuredRoot(); $message = SecuredFilesystem::sync_secured($securedRoot->ID); $this->response->addHeader('X-Status', rawurlencode($message)); return; }
/** * Can be queried with an ajax request to trigger the filesystem sync. It returns a FormResponse status message * to display in the CMS * * @return null */ public function doSync() { $message = SecuredFilesystem::sync_secured(); $this->response->addHeader('X-Status', rawurlencode($message)); return; }