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

XF Filecache

Discussion in 'XenForo Questions and Support' started by nrep, Apr 27, 2016.

  1. nrep

    nrep Well-Known Member

    If I enabled XF's file based caching in config.php, what exactly would the consequences be? I can't see a list of what sort of things it would cache. We've got opcache/wincache enabled, so perhaps using the file cache would be advantageous.

    It may be nice to enable css minify, but we don't have any of the other caching mechanisms available, so file cache is our only option at the moment. However, if enabling the filecache would mean that lots of other things are also cached this way, then it may be slower overall.

    I'd be interested to hear what other file cache users think!
     
  2. Mouth

    Mouth Well-Known Member

  3. nrep

    nrep Well-Known Member

    Unfortunately not, as it just mentions the types of cache available (and how to activate them). I don't know what the cache actually does other than the "ability to store and retrieve various data".

    If it's limited to a handful of things such as CSS (when minify is used) then that's great for me, however if it has a file based session cache (or similar things, better suited to a non-file cache) then it probably won't be worth it.
     
  4. Mouth

    Mouth Well-Known Member

    It stores XF commonly used and frequently accessed data in a backend you decide from "$config['cache']['backend'] = '<yours here>';"
    In other words, instead of accessing from DB each time required, it will collect it from the (faster) backend cache mechanism. (eg. in memory cache instead of SQL query from DB)
     
    maszd likes this.
  5. Xon

    Xon Well-Known Member

    File cache is a horrible option, as how it cleans up (or doesn't clean up) stale records is nasty an slow.
     
    nrep likes this.
  6. nrep

    nrep Well-Known Member

    Thanks @Xon, I'll keep things as they are then and forgo CSS Minification.
     
  7. Xon

    Xon Well-Known Member

    You can get Redis or Memcache which run on Windows, I'ld recommend on of those. Or failing that a cheap single core linux VM in the same datacentre will easily do the job.
     
    nrep likes this.

Share This Page