1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[bd] Cache [Paid] 1.1.0

Faster and faster.

  1. xfrocks

    xfrocks Well-Known Member

    xfrocks submitted a new resource:

    [bd] Cache - Faster and faster.

    Read more about this resource...
     
  2. xfrocks

    xfrocks Well-Known Member

    Some non-scientific page time test results. Please note:
    • The overhead is mostly caused by "CSS to file" feature, the "Cache Pages" feature has very low overhead itself.
    • "Cache Pages" reduce page time AND memory usage AND other server resources too. For example: less PHP script to load (it is normal to load 100+ files per request, this add-on usually cuts that down to 60-something files).
    • Yes, my test server is slow.

    XenPorta first page:
    portal_page_1.png
    Overhead: 0.2337 - 0.2006 = 0.0331 (16%)
    Saving: 0.2006 - 0.1258 = 0.0748 (37%)

    XenPorta second page:
    portal_page_2.png
    Overhead: 0.2606 - 0.2060 = 0.0546 (26%)
    Saving: 0.2060 - 0.1271 = 0.0789 (38%)

    Thread View first page:
    thread_page_1.png
    Overhead: 0.3098 - 0.3016 = 0.0082 (2%)
    Saving: 0.3016 - 0.1499 = 0.1517 (50%)

    Thread View second page (no cache):
    thread_page_2.png
    Overhead: 0.2905 - 0.2512 = 0.0393 (15%)
     
    Last edited: Jan 16, 2014
  3. Slavik

    Slavik XenForo Moderator Staff Member

    :ROFLMAO:What have I started
     
    xfrocks likes this.
  4. Moshe1010

    Moshe1010 Well-Known Member

    So it caches everything mentioned to the hard drive? How does it work with xCache for example that caches stuff to the memory? For how long pages are cached (can I control it?)?
     
  5. xfrocks

    xfrocks Well-Known Member

    If there is a cache backend, it will store the data in that for better performance.
    By default, pages are cached for 10 minutes. It is an option in AdminCP > Options > Performance with [bd] Cache.
     
  6. Moshe1010

    Moshe1010 Well-Known Member

    Does it have anything that controls changes? Foe example "Forum List" is cached, what if I add a new node, would it show immediately? What if someone comments, would it show that this user has commented in a specific node in the Forum List?
     
  7. The Forum Heroes

    The Forum Heroes Well-Known Member

    xfrocks likes this.
  8. xfrocks

    xfrocks Well-Known Member

    No. It will not monitor for changes. If something is urgent that you need to update it asap, you can purge cache for that specific page.
     
  9. Moshe1010

    Moshe1010 Well-Known Member

    So if I choose 10 minutes for the caching, posts in threads would be updated once in 10 minutes?
     
  10. xfrocks

    xfrocks Well-Known Member

    For threads, the last page is not cache. If a thread has 10 pages, only the first 9 are cached, the 10th is left uncached until the thread reaches page 11. That way people will always be able to see the latest posts.
     
    JVCode, D.O.A. and BassMan like this.
  11. Moshe1010

    Moshe1010 Well-Known Member

    Sorry for my many questions, I just want to get to the bottom of this add-on. Why thread list isn't cached? (it's not listed in the description).
    What triggers caching again after let's say 10 minutes? user(s) action(s) or this is somewhat automatically?
     
  12. xfrocks

    xfrocks Well-Known Member

    No problem, feel free to ask :)

    Thread list is not cached because it is displayed in reversed chronological order and caching will interfere too much to user experience. After 10 minutes, it will refresh itself when a guest visit the page.
     
  13. tajhay

    tajhay Well-Known Member

    Finding that the times in debugging info substantially increase when using this addon, though the queries marginally get reduced. Anyone got any stats on how well they are faring using this?
     
  14. xfrocks

    xfrocks Well-Known Member

    Time for guest or for users? Guest page time should be increased for cache-able pages. But that is offset when the cache is served.
     
    tajhay likes this.
  15. tajhay

    tajhay Well-Known Member

    Yes, I should have been clearer it is for guests. Is the time how long it takes for the page to be shown to the user?
     
  16. xfrocks

    xfrocks Well-Known Member

    Yes, the first guests will surfer some overhead.
     
  17. MrC

    MrC Active Member

    Do we have an option to reduce cache time for say forum list? It becomes problematic when new posts are updated on forum list only every 10 mins (and with addon like ******* Statistics).
     
    BassMan likes this.
  18. xfrocks

    xfrocks Well-Known Member

    Different TTL for each page? Maybe next version.
     
    BassMan and MrC like this.
  19. BamBam

    BamBam Active Member

    Is this only for Guests? Not for logged in Members?
     
  20. xfrocks

    xfrocks Well-Known Member

    "Cache Pages" feature is guest only as it doesn't make sense to do that for logged in users.
    "Css to file" works for everyone (guests + users).
     
    Last edited: Jan 15, 2014
    D.O.A. likes this.

Share This Page