Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Random value in Core files for CloudFlare

If your website is using CloudFlare

https://www.cloudflare.com/login.html

It would be nice in the next version of Vanilla forums if the team added a random value to be added on in

functions.general.php

on line 374 and 2192. This way if you make changes to your custom.css file it will not cache the old version.

My soloution was to add .rand(1, 200);

Tagged:

Answers

  • ToddTodd Vanilla Staff
    edited April 2012

    Vanilla is already set up to handle this scenario. When you change your theme you increment it's version number which is appended to the query string for custom.css. Adding a random number completely by-passes the purpose of cloudflare.

  • so how do i change its version number thanks for the help

  • ToddTodd Vanilla Staff

    You modify your theme's info array.

  • Ok I will give that a shot. Thanks for the help Todd

Sign In or Register to comment.