这是PHP版本的资源站缓存去广告源码理论上支持所有资源站 黑木耳不行

使用方法:
1.

在config.php配置接口和授权调用ip

缓存时间:资源站资源理论上可以永久,黑木耳除外(10800)

清理缓存功能配置,在宝塔定时任务添加 访问url,url写 你的网站/clear.php,调用时间周期按你个人所需

2.

在config.php 配置当前网站的域名$web

3.

如果缓存资源需要让网站播放,需要配置跨域

宝塔

nginx:
    在 网站->配置文件 中间任意部分添加
    
    add_header Access-Control-Allow-Origin '*';
    add_header Access-Control-Allow-Methods 'POST,PUT,GET,DELETE';
    add_header Access-Control-Allow-Headers 'version, access-token, user-token, Accept, apiAuth, User-Agent, Keep-Alive, Origin, No-Cache, X-Requested-With, If-Modified-Since, Pragma, Last-Modified, Cache-Control, Expires, Content-Type, X-E4M-With'; 
    
apache:
    在 网站->配置文件 中间任意部分添加
    
    Header set Access-Control-Allow-Origin *
    Header set Access-Control-Allow-Credentials true
    Header set Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept"
    

注:
    如果网站有多个端口,需要在对应端口代码中间添加,尤其是80和443端口

4.

jxerror目录内记录json接口无法解析的链接