[bd] Cache 1.2.3

Faster and faster.

  1. xfrocks

    xfrocks XenForo rocks!
    Staff Member

  2. yavuz

    yavuz Member

    We are waiting for that announcement :) :p
     
    1. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @yavuz Haha. Nice.
       
      yavuz likes this.
      1
  3. andret

    andret New Member

    I really like the CSS functionality. Works wonder on my site. Somewhat uncertain on the caching though, and really want more information on the technical aspect of it XD
     
    1. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @andret Soon :D
       
    2. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @andret I have included the technical information section just for you ;)
       
  4. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    BassMan likes this.
  5. silence

    silence New Member

    014/01/14 16:11:43 [error] 17296#0: *1071447 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught exception 'ErrorException' with message 'mkdir(): File exists' in /home/blahblah/public_html/xenforo/library/XenForo/Helper/File.php:68

    Stack trace:
    #0 [internal function]: XenForo_Application::handlePhpError(2, 'mkdir(): File e...', '/home/blahblah/publ...', 68, Array)
    #1 /home/blahblah/public_html/xenforo/library/XenForo/Helper/File.php(68): mkdir('/home/blahblah/publ...')
    #2 /home/blahblah/public_html/xenforo/library/bdCache/Css.php(20): XenForo_Helper_File::createDirectory('/home/blahblah/publ...', true)
    #3 /home/blahblah/public_html/xenforo/library/bdCache/Listener.php(145): bdCache_Css::save('css=moderator_b...', '@CHARSET "UTF-8...')
    #4 [internal function]: bdCache_Listener::css_shutdown('css=moderator_b...')
    #5 {main}
    thrown in /home/blahblah/public_html/xenforo/library/XenForo/Helper/File.php on line 68" while reading upstream, client: xx.xx.xx.xx, server: blahblahgamers.org, request:$
     
    1. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @silence Can you please check the directory tree for external data/bdCache? Sorry for your problem.
       
    2. silence

      silence New Member

      silence @xfrocks Yes it is there :)
       
    3. silence

      silence New Member

      silence @xfrocks Well the exception occured in the backend, and I had to go to admin.php to continue the addon installation process.
      That error only occurs once in the installation (it appeared once in my nginx error logs)
       
    4. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @silence Interesting, please keep an eye on it if that happens again.
       
      silence likes this.
      1
  6. caoanh204

    caoanh204 New Member

    Có 1 hiện tượng là tính năng css to file chỉ chuyển được 1 phần:

    HTML:
    <link rel="stylesheet" href="data/bdCache/css/1389754255/907d782e9bac11daa74405f63adf2cd4.css" />
    <link rel="stylesheet" href="css.php?css=XP_sub_forum,bbcm_buttons,bbcm_js,dark_azucloud,member_list,node_category,node_forum,node_list,panel_scroller,sidebar_share_page,sonnb_xengallery_navbar_template,sonnb_xengallery_widget,sonnb_xengallery_widget_album,vtlai_topx,vtlai_topx_tooltip,wf_default&amp;style=8&amp;dir=LTR&amp;d=1389754255" />
    
    Dẫn đến 1 số tính năng có overlay hoạt động không được, như click vào username nó chỉ hiện biểu tượng loading rồi tắt chứ không hiện ra membercard như bình thường.
    Phải nhấn Ctrl+F5 thì phần CSS thứ 2 mới được chuyển thành file:

    HTML:
    <link rel="stylesheet" href="http://cdn.kenhsinhvien.net/data/bdCache/css/1389754255/907d782e9bac11daa74405f63adf2cd4.css" />
        <link rel="stylesheet" href="http://cdn.kenhsinhvien.net/data/bdCache/css/1389754255/ff21a4949181021a997b63a78430445d.css" />
    Mình đang dùng Centos với Apache + NginX làm proxy nghịch + Core Front-end Cache + Memcached Back-end Cache + Cache Sessions

    Vậy mình phải làm gì để khắc phục tình trạng này?
     
    1. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @caoanh204 Việc CSS vẫn đi qua css.php là bình thường, không vấn đề gì. Lỗi cho overlay là do CSS ở domain khác tuy nhiên mình có xử lý trường hợp này rồi, bạn cho mình link site tại đây hoặc conversation để mình qua kiểm tra nhé.
       
      caoanh204 likes this.
      1
  7. andret

    andret New Member

    Will cache be updated if new posts are added to a thread?
     
    1. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @andret Cache will not be updated. But the latest page of thread_view is not cached so guests will be able to read recent pasts always.
       
  8. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    If you uninstalled the add-on, it should work as before. Try force refresh your browser (ctrl+f5). If it doesn't work, please start a conversation with me with your forums info, I will come and check. Sorry for your problem.
     
  9. xfrocks

    xfrocks XenForo rocks!
    Staff Member

  10. xfrocks

    xfrocks XenForo rocks!
    Staff Member

  11. realaqu

    realaqu New Member

    since I installed this add-on, all my articles thumbnails are gone, I use xen-zine article system. any solution?
     
    1. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @realaqu This is being investigated. Please start a conversation with me with your site info.
       
    2. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @realaqu XenZine Articles should work now.
       
  12. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    yavuz likes this.
  13. andret

    andret New Member

    Would it be hard to add caching for a custom addon? We have a heavily modified version of the OXY News addon as frontpage, and it got no built in caching what so ever :p
     
    1. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @andret It is fairly easy for other add-on to make use of this add-on, you can ask the author to check the code in [bd] Widget Framework. It has supports for [bd] Cache by doing 2 things:
      • Extends bdCache_Model_Cache::isSupportedRoute
      • Call bdCache_ControllerHelper_Cache::markViewParamsAsCacheable in its actions
       
  14. andret

    andret New Member

    It is something I would have to do myself in any case, but the above should help. Thanks :)
     
    1. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @andret If the add-on author doesn't add support, I can send your a small add-on to connect those two add-ons together ;) Start a conversation with me.
       
  15. Andy

    Andy Member

    I see that this addon caches pages. I'm not sure if you mean XF node pages because I don't see a top link to set TTL or purge cache for couple of XF pages that I created.
    For example, this is a page https://www.quantnet.com/mfe-programs-rankings/
     
  16. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    No, it does not cache "page" node.
     
  17. Andy

    Andy Member

    I see lot of these errors on my server log
    2014/01/29 02:49:49 [error] 29729#0: *129 open() "/home/nginx/domains/domain.com/public/data/bdCache/css/1389312000/d2669422a011f5d06602a24b1531cc9d.css" failed (2: No such file or directory), client: 209.xxx.xxx.xxx, server: www.domain.com, request: "GET /data/bdCache/css/1389312000/d2669422a011f5d06602a24b1531cc9d.css HTTP/1.1", host: "www.domain.com"
     
  18. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    That file was from January 10th, it may get cleaned up by the add-on recently. You got server error because some system may cached the very old page (2+ weeks) and try to load it now. I'm thinking about the like of Googlebot. Maybe you want to disable the cron job to see if that still happens.
     
  19. Andy

    Andy Member

    I have APC on the backend and I notice that since using this addon, the APC fragmentation is filling up to 100% after 2 days. Before, it can go weeks and it never got close to that level.
     
    1. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @Andy Yes, this add-on relies heavily on cache system. And the cached contents are rather large so it's understandable. What is your configuration for APC?
       
    2. Andy

      Andy Member

      Andy @xfrocks apc.png
       
  20. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    I would say increase your memory size but 320M is rather large already. Please keep it running for a longer period of time to collect better average value for hit rate and miss rate.
     
Loading...