On Tuesday, October 7, 2014 10:43:27 PM UTC+2, Rick Williams wrote: > > Hi PMario, > > That's definitely not the case. I've defined this server myself > specifically for this. There is no competing load of any significance. >
I think I know it. WARNING: Be aware, that I didn't test the following steps. So ... *backup ;)* your ls -al says: total 1544 !! And there seem to be many .png.tid and .jpeg's with several 100kByte ... So your TiddlyWikki will be huge. .... IMO you should store your images in an image subfolder and use the _cannonical_uri field for the image tiddlers. So your TW stays small and nginx can load the static images on demand. ... IMO Your startup time should be down quite a bit. The tiddlywiki.info file has a configuration, that lets you create external images with the TW build process. see: https://github.com/Jermolene/TiddlyWiki5/blob/master/editions/tw5.com/tiddlywiki.info#L32 You should add this to your tiddlywiki.info "build": { "index": [ "--savetiddlers","[tag[external-image]]","images", "--setfield","[tag[external-image]]","_canonical_uri","$:/core/templates/canonical-uri-external-image","text/plain", "--setfield","[tag[external-image]]","text","","text/plain", "--rendertiddler","$:/core/save/all","index.html","text/plain"] }, Then you should add a tag eg: external-image to your .png.tid, png.meta files. Same for the .jpg.meta and jpg.tid. .. Manually or may be a sed script. .. The tag needs to fit the tag in the tiddlywiki.info build section Your build commands should look like this: # I don't know if TW build creates the image dir so we do :) # Just to be sure.... you have a backup? mkdir /home/ncemonwiki/emonwiki/images /usr/bin/node /usr/bin/tiddlywiki /home/ncemonwiki/emonwiki --output /home/ncemonwiki/emonwiki --build index Your /images directory should now contain all the images. ... if not something went wrong. The build command should create a index.html file, that now should be relatively small. (Just a test. Build it again without the --setfield parameters. That's the file that was served in 60 seconds. .. I'm interested in the size of this file!) Now comes the tricky part. ... The build did create images, but didn't rewrite the .png.tid files in the tiddlers folder. The (small) index.html should be accessible from a browser. we need to import it into the server version. ... If you open the index.html file with a browser you should check some images. They should have no text content anymore but a field named _canonical_uri that points to the image dir ... - Start the server. Will still be slow. - Drag and drop the small index.html file to the open TW in the browser - It should display an import dialog. - Select all the images, import and pray ..... - The import should rewrite all the image tiddler in the tiddlers folder. - so this may take some time. .... If everything goes well ... your TW should be faster now. If something doesn't make sense. Just ask. have fun! mario -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.

