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

Template File Opcache Invalidate 1.0.0

Have the templates cached on save!

  1. Liam W
    Compatible XF Versions:
    • 1.0
    • 1.1
    • 1.2
    • 1.3
    • 1.4
    • 1.5
    Visible Branding:
    No
    This super simple but really useful add-on is for forums that meet the following requirements:
    • Serve templates as files
    • Have Zend Opcache enabled
    • Have the opcache renew time set to a larger value
    When a template is changed, it may not update immediately due to the cached version still being used.

    This fixes that. It'll invalidate and recache a template file when it is changed - meaning the changes update immediately, and the files are cached before a visitor accesses the site.

    This should make viewing changes easier, as you won't have to reset the cache for changes to immediately take.
    TMC likes this.