donljt2606 2019-02-14 10:56
浏览 101

Octobercms - 禁用缓存

I have created a blog using Octobercms and rainlab blogpost. When I am visiting my page, when logged in it shows me all posts but when I am logged out, it shows me 3 posts only, I checked that all the posts are published.

Please help me understand this behavior, is this a cache issue? How can I disable it or remove cache after changing in my CMS?

Thanks

  • 写回答

1条回答 默认 最新

  • doupo1865 2019-02-14 11:23
    关注

    If it is indeed cache problem, you can try following things:

    Change the interval for cms object re-cache in config/cms.php (it is specified in minutes):

    'parsedPageCacheTTL' => 1,
    

    If you are in development mode and need to disable laravel cache, you can use array cache driver, in config/cache.php change:

    'default' => 'array',
    

    You can also try to run (to clear the cache):

    ./artisan cache:clear
    

    My last guess would be that php opcache may be the root of your problems, so you can try to disable it (in php.ini):

    opcache.enable=0
    

    or set it to check file timestamps: opcache.validate_timestamps=1

    评论

报告相同问题?

悬赏问题

  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了