File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 2222);
2323
2424$ cdnManager = new CdnManager ($ auth );
25+
26+ // 目前客户默认没有目录刷新权限,刷新会有400038报错,参考:https://developer.qiniu.com/fusion/api/1229/cache-refresh
27+ // 需要刷新目录请工单联系技术支持 https://support.qiniu.com/tickets/category
2528list ($ refreshResult , $ refreshErr ) = $ cdnManager ->refreshUrlsAndDirs ($ urls , $ dirs );
2629if ($ refreshErr != null ) {
2730 var_dump ($ refreshErr );
Original file line number Diff line number Diff line change @@ -23,16 +23,24 @@ public function refreshUrls($urls)
2323 return $ this ->refreshUrlsAndDirs ($ urls , null );
2424 }
2525
26+ /*
27+ * 目前客户默认没有目录刷新权限,刷新会有400038报错,参考:https://developer.qiniu.com/fusion/api/1229/cache-refresh
28+ * 需要刷新目录请工单联系技术支持 https://support.qiniu.com/tickets/category
29+ */
2630 public function refreshDirs ($ dirs )
2731 {
2832 return $ this ->refreshUrlsAndDirs (null , $ dirs );
2933 }
3034
3135 /**
3236 * @param array $urls 待刷新的文件链接数组
37+ * @param array $dirs 待刷新的目录链接数组
3338 *
3439 * @return array 刷新的请求回复和错误,参考 examples/cdn_manager.php 代码
3540 * @link http://developer.qiniu.com/article/fusion/api/refresh.html
41+ *
42+ * 目前客户默认没有目录刷新权限,刷新会有400038报错,参考:https://developer.qiniu.com/fusion/api/1229/cache-refresh
43+ * 需要刷新目录请工单联系技术支持 https://support.qiniu.com/tickets/category
3644 */
3745 public function refreshUrlsAndDirs ($ urls , $ dirs )
3846 {
You can’t perform that action at this time.
0 commit comments