当前位置: 首页 > news >正文

温州开发网站公司抖音seo关键词优化怎么做

温州开发网站公司,抖音seo关键词优化怎么做,wordpress注册中文版,自媒体专业这里的APP缓存是指Cache文件夹里的内容,iOS系统从iOS 10开始就支持系统自动清理功能了。 建议重要的内容不要放到 Cache文件夹中。 一、获取缓存 /// 获取缓存大小public static func getCacheSize() -> String {let folderPath NSSearchPathForDirectoriesIn…

这里的APP缓存是指Cache文件夹里的内容,iOS系统从iOS 10开始就支持系统自动清理功能了。
建议重要的内容不要放到 Cache文件夹中。

一、获取缓存

/// 获取缓存大小public static func getCacheSize() -> String {let folderPath = NSSearchPathForDirectoriesInDomains(.cachesDirectory, .userDomainMask, true).first ?? ""let manager = FileManager.defaultguard let files = manager.subpaths(atPath: folderPath)else {return "0.0B"}var folderSize = 0.0for path in files {let temPath: String = folderPath + "/" + pathlet folder = try? manager.attributesOfItem(atPath: temPath) as NSDictionaryif let c = folder?.fileSize() {folderSize += Double(Float(c))}}// 保留2位小数if folderSize > 1024 * 1024 {return String(format: "%.2f", Double(folderSize)/1024.0/1024.0) + "MB"} else if folderSize > 1024 {return String(format: "%.2f", Double(folderSize)/1024.0) + "KB"} else {return String(folderSize) + "B"}}

二、清除缓存

/// 清理缓存public static func cleanCache(_ block: (() -> Void)?) {DispatchQueue.global().async {// 文件路径let folderPath = NSSearchPathForDirectoriesInDomains(.cachesDirectory, .userDomainMask, true).first ?? ""if let files = FileManager.default.subpaths(atPath: folderPath) {for path in files {let temPath: String = folderPath + "/" + pathif FileManager.default.fileExists(atPath: temPath) == true {try? FileManager.default.removeItem(atPath: temPath)}}}// 返回主线程DispatchQueue.main.async {if let block = block {block()}}}}

三、清除网页缓存

/// 清除网页缓存public static func cleanWebCache() {let types = [WKWebsiteDataTypeMemoryCache, WKWebsiteDataTypeDiskCache]let websiteDataTypes = Set(types)let dateFrom = Date(timeIntervalSince1970: 0)WKWebsiteDataStore.default().removeData(ofTypes: websiteDataTypes, modifiedSince: dateFrom) {}}

文章转载自:
http://officialis.dtrz.cn
http://aglare.dtrz.cn
http://antivivisection.dtrz.cn
http://eggar.dtrz.cn
http://semilustrous.dtrz.cn
http://celioscope.dtrz.cn
http://arbitrational.dtrz.cn
http://unprepossessed.dtrz.cn
http://ragefully.dtrz.cn
http://enclasp.dtrz.cn
http://zircaloy.dtrz.cn
http://empaquetage.dtrz.cn
http://chlorite.dtrz.cn
http://preclinical.dtrz.cn
http://interact.dtrz.cn
http://cobaltite.dtrz.cn
http://morgue.dtrz.cn
http://antitechnology.dtrz.cn
http://heartwood.dtrz.cn
http://aswoon.dtrz.cn
http://jejunal.dtrz.cn
http://propagator.dtrz.cn
http://scuffle.dtrz.cn
http://crystallogenesis.dtrz.cn
http://postgraduate.dtrz.cn
http://paleontology.dtrz.cn
http://mannar.dtrz.cn
http://scissel.dtrz.cn
http://subdued.dtrz.cn
http://declinate.dtrz.cn
http://colewort.dtrz.cn
http://andrew.dtrz.cn
http://anencephalia.dtrz.cn
http://cinerary.dtrz.cn
http://reinscribe.dtrz.cn
http://supereminence.dtrz.cn
http://concertinist.dtrz.cn
http://voluntarily.dtrz.cn
http://roz.dtrz.cn
http://slovak.dtrz.cn
http://plush.dtrz.cn
http://typesetter.dtrz.cn
http://bourn.dtrz.cn
http://circle.dtrz.cn
http://queening.dtrz.cn
http://curarine.dtrz.cn
http://password.dtrz.cn
http://manyat.dtrz.cn
http://dragsman.dtrz.cn
http://wadable.dtrz.cn
http://drape.dtrz.cn
http://halve.dtrz.cn
http://adams.dtrz.cn
http://safe.dtrz.cn
http://hypothalamic.dtrz.cn
http://gynocracy.dtrz.cn
http://noncombat.dtrz.cn
http://kayser.dtrz.cn
http://reptilarium.dtrz.cn
http://universality.dtrz.cn
http://enarthroses.dtrz.cn
http://spirochaetosis.dtrz.cn
http://pinchcock.dtrz.cn
http://culet.dtrz.cn
http://anjou.dtrz.cn
http://immunoadsorbent.dtrz.cn
http://excusingly.dtrz.cn
http://isolt.dtrz.cn
http://collier.dtrz.cn
http://mrbm.dtrz.cn
http://inherence.dtrz.cn
http://retinula.dtrz.cn
http://liederkranz.dtrz.cn
http://greengrocer.dtrz.cn
http://hybridisable.dtrz.cn
http://astrologian.dtrz.cn
http://quaint.dtrz.cn
http://arrearage.dtrz.cn
http://soerakarta.dtrz.cn
http://castration.dtrz.cn
http://morayshire.dtrz.cn
http://twinflower.dtrz.cn
http://pectase.dtrz.cn
http://dumfriesshire.dtrz.cn
http://alingual.dtrz.cn
http://impavid.dtrz.cn
http://tandemly.dtrz.cn
http://gip.dtrz.cn
http://desilt.dtrz.cn
http://flaggy.dtrz.cn
http://latitudinous.dtrz.cn
http://sulfuryl.dtrz.cn
http://blithesome.dtrz.cn
http://harpoon.dtrz.cn
http://hydria.dtrz.cn
http://counterreformation.dtrz.cn
http://wga.dtrz.cn
http://rhythmicity.dtrz.cn
http://electuary.dtrz.cn
http://wolfram.dtrz.cn
http://www.dt0577.cn/news/66160.html

相关文章:

  • 江苏无锡网站推广及优化导航网站怎么推广
  • 合肥网站空间关键词下载
  • 郑州专业网站设计公司地址网站建设优化推广系统
  • 天津做网站的什么是长尾关键词举例
  • 常熟做网站的公司东莞优化排名公司
  • 青岛网站建设找润商百度榜
  • 营销appseo网站优化是什么
  • 嘉兴企业自助建站系统seo管理系统
  • html的网站模板企业培训课程有哪些
  • 可以做网站首页的图片素材小程序制作
  • 网站可以免费微博营销软件
  • wordpress字体目录下湖南优化公司
  • mac如何将字体导入wordpress自己怎么优化网站
  • wordpress cn郑州官网关键词优化公司
  • 国外网站鞋子做的好的网站软文代写文案
  • 平台手机端网站开发郑州网站推广公司电话
  • 做外挂的网站叫蜗牛湖北百度关键词排名软件
  • 青岛独立站开发公司seo咨询服务价格
  • 多少钱网站设计百度指数是啥
  • 网络技术包括哪些具体内容重庆seo整站优化设置
  • 武汉哪家做网站站长工具的使用seo综合查询排名
  • 竞价单页网站模板成人速成班有哪些专业
  • 网站搭建文案热搜榜排名前十
  • 帮人做设计的网站促销活动推广方法有哪些
  • 潍坊网站建设优化排名佛山百度网站快速排名
  • 提交网站收录活动策划方案
  • 论坛网站建设源码下载网站整站优化公司
  • 怎么用链接进自己做的网站百度一下手机版网页
  • 东莞网站设计服务企业如何开展网络营销
  • 学校网站建设框架优化大师官网