我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

排除部分网页被缓存?

I'm using apache, varnish and w3 total cache on a wordpress site.

I have a range of random posts that get loaded into an element.

My page is being cached by varnish and there for this element loses its randomness, ideally I would like to exclude this element from varnish and any other cache if this means editing my apache.conf.

I would suggest using JS to load the element, and add a varnish VCL pass for the URL that is called by AJAX for the element.

近期文章

  • jQuery在编辑表单页面上没有加载数据
  • 这对于大型PHP站点来说是一个很好的布局吗?
  • 使用mysql获取结果构建json
  • 使用$ _GET进行分页,添加一个
  • 将全局范围var传递给包含的文件
  • 获取当前登录用户的模型
  • php使用变量提取完整的URL
  • Ajax脚本强制页面继续重新加载
  • 如何获得正确的Cell Coordinate值
  • 将此值拆分为插入查询的一部分
  • 将PHP mysql数据显示为类别
  • 我怎么能在PHP表单中添加一个字段
  • $ _POST并使用html提交按钮重定向
  • Javascript函数传递php变量
  • 如何将HTML / CSS输出作为附件邮寄?
  • 将JSON stringify发送给PHP如何阅读它
  • 难以从<select>获取值
  • Wordpress functions.php有一个解析错误[重复]
  • 查找Symfony小组件内容文件位置
  • Eloquent:根据表关系计算行数

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华