V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
444683462
V2EX  ›  问与答

thinkphp 的缓存在实际应用中一般处理些什么?例如一些常用的图片能缓存吗?具体怎么操作

  •  
  •   444683462 · 2015-04-21 12:05:38 +08:00 · 1848 次点击
    这是一个创建于 3294 天前的主题,其中的信息可能已经有所发展或是发生改变。

    thinkphp的缓存在实际应用中一般处理些什么?例如一些常用的图片能缓存吗?具体怎么操作

    4 条回复    2015-04-22 11:15:47 +08:00
    Septembers
        1
    Septembers  
       2015-04-21 12:38:36 +08:00   ❤️ 1
    @Livid @vCleaner This may be moved to /go/php
    neilwong
        2
    neilwong  
       2015-04-21 15:55:54 +08:00
    图片缓存一般都是找CDN吧,常说的thinkPhp的缓存一般是一个文本类的信息。使用Cache::set Cache::write Cache::read 调用
    444683462
        3
    444683462  
    OP
       2015-04-21 18:05:03 +08:00
    @neilwong 好的 谢谢。比如七牛之类的 他会自动图片缓存吗
    neilwong
        4
    neilwong  
       2015-04-22 11:15:47 +08:00
    @444683462 不会吧,cdn图片缓存前期可以放在子域下,网站做好变量控制,能够做好随时迁移就好了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1326 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 17:36 · PVG 01:36 · LAX 10:36 · JFK 13:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.