444683462
V2EX  ›  问与答

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

  •  
  •   444683462 · Apr 21, 2015 · 2303 views
    This topic created in 4071 days ago, the information mentioned may be changed or developed.

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

    4 replies    2015-04-22 11:15:47 +08:00
    Septembers
        1
    Septembers  
       Apr 21, 2015   ❤️ 1
    @Livid @vCleaner This may be moved to /go/php
    neilwong
        2
    neilwong  
       Apr 21, 2015
    图片缓存一般都是找CDN吧,常说的thinkPhp的缓存一般是一个文本类的信息。使用Cache::set Cache::write Cache::read 调用
    444683462
        3
    444683462  
    OP
       Apr 21, 2015
    @neilwong 好的 谢谢。比如七牛之类的 他会自动图片缓存吗
    neilwong
        4
    neilwong  
       Apr 22, 2015
    @444683462 不会吧,cdn图片缓存前期可以放在子域下,网站做好变量控制,能够做好随时迁移就好了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2874 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 10:00 · PVG 18:00 · LAX 03:00 · JFK 06:00
    ♥ Do have faith in what you're doing.