greenvoice
Member
Dear support,
To improve forum speed, I'd like to move data folder to another, CDN server. The first thing I'd do is to set proper value in config.php:
But.. Data folder contains avatars and attachments folders. I'd like to know, how upload will behave in such a case? I mean - avatars will be loaded from cdn, but where will be uploaded? How can I change the way attachment and avatars are processed to handle cdn scenario?
//EDIT
I have came up with the following scenario:
1. Keep externalDataPath on local server
2. Url set to external cdn
3. Use rsync to upload local server data contents to cdn.
Is this good approach?
What is more - what is parameter after avatar url (f.e: /data/avatars/s/130/130174.jpg?1504006286) - it could prevent caching.
To improve forum speed, I'd like to move data folder to another, CDN server. The first thing I'd do is to set proper value in config.php:
PHP:
$config['externalDataUrl'] = 'https://mycdn.com/data'
But.. Data folder contains avatars and attachments folders. I'd like to know, how upload will behave in such a case? I mean - avatars will be loaded from cdn, but where will be uploaded? How can I change the way attachment and avatars are processed to handle cdn scenario?
//EDIT
I have came up with the following scenario:
1. Keep externalDataPath on local server
PHP:
$config['externalDataPath'] = 'data'
2. Url set to external cdn
PHP:
$config['externalDataUrl'] = 'https://mycdn.com/data'
3. Use rsync to upload local server data contents to cdn.
Is this good approach?
What is more - what is parameter after avatar url (f.e: /data/avatars/s/130/130174.jpg?1504006286) - it could prevent caching.
Last edited: