简体   繁体   English

将http Cache-Control复制到新服务器

[英]Copy http Cache-Control to a new server

I have a setup where we curl one of our solr servers and use the http header Cache-Control to cache the results. 我有一个设置,其中我们卷曲一台Solr服务器,并使用http标头Cache-Control来缓存结果。

We're setting up a new server that will be making the same calls, is there a way to move the cache from the old server and copy it over to the new server? 我们正在设置一个将进行相同调用的新服务器,是否可以将缓存从旧服务器移至新服务器并复制到新服务器? Where would that be stored by default on linux? 在Linux上默认会将其存储在哪里?

Based on our discussion in comments above. 基于以上评论中的讨论。 It seems like you do not currently have an operational cache. 看来您目前没有可操作的缓存。 PHP cURL does not have any built-in caching mechanism, you you will need to implement you own caching mechanism should you need it. PHP cURL没有内置的缓存机制,您将需要实现自己的缓存机制。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM