lolisafe.js: fixed a logic

faq.njk: fixed typo
This commit is contained in:
Bobby Wibowo 2020-02-13 14:37:19 +07:00
parent 5adbe84896
commit 783ac81bf7
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF
2 changed files with 2 additions and 2 deletions

View File

@ -221,7 +221,7 @@ safe.use('/api', api)
// Cache control (safe.fiery.me)
// Purge Cloudflare cache
if (config.cacheControl === 1)
if (config.cacheControl && config.cacheControl !== 2)
if (config.cloudflare.purgeCache) {
logger.log('Cache control enabled, purging Cloudflare\'s cache...')
const results = await utils.purgeCloudflareCache(cdnPages)

View File

@ -124,7 +124,7 @@
<article class="message">
<div class="message-body">
Yes, the homepage uploader was coded to chunk uploads into {{ chunkSizeInt }} MB pieces by default (configurable through the homepage's Config tab).<br>
If you want to chunk your API uploads, feel free to chunks the <a href="https://github.com/BobbyWibowo/lolisafe" target="_blank" rel="noopener">source code</a> to see how it works.<br>
If you want to chunk your API uploads, feel free to inspect the <a href="https://github.com/BobbyWibowo/lolisafe" target="_blank" rel="noopener">source code</a> to see how it works.<br>
<br>
A rough description of how it works is to simply upload the chunks with their UUID information attached, and then call the "finish chunks" API with the said UUID, to rebuild them into a single proper file.
</div>