ThreeSixtyGiving / Insights

Combining and visualising 360Giving and charity data to answer questions about grantmaking
https://insights.threesixtygiving.org/
GNU General Public License v3.0
3 stars 2 forks source link

Create the cache dir for sqlite db in the init #157

Closed michaelwood closed 3 years ago

michaelwood commented 4 years ago

When the cache is enabled (default) the sqlite database needs to have a existing directory to live in. Create it if it doesn't exist.

drkane commented 4 years ago

Looks good. Because http_cache ends up as an sqlite database, I've changed it so it creates the uploads folder outside of the if statement, as the uploads folder is also used elsewhere so it needs to be created anyway.