Telegram_2019-08-12T16

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2019 > 08 > 12 >

Telegram_2019-08-12T16

Telegram link

 

2019-08-12T16:13:30

 

Load your template to TMemoryStream instances (1 for each template file) do whatever you want with them and add them to the ServerInternalFiles list. Use them from there instead of loading/processing it every time.

 


 

Telegram link

 

2019-08-12T16:16:39

 

Then just use the BeforeProcess event to use your own stream. This way IW won't load it from file

 


 

Telegram link

 

2019-08-12T16:19:43

 

wow. ok.

 


 

Telegram link

 

2019-08-12T16:20:33

 

but if you are following this, use the ServerController.OnConfig event

 


 

Telegram link

 

2019-08-12T16:20:50

 

Sure

 


 

Telegram link

 

2019-08-12T16:21:44

 

if you need to do some processment which is dependent on the request, then you need to do the processment using the BeforeProcess event anyway. You can still use the serverInternalFile to avoid having to load the template from file every time