{"id":436,"date":"2016-03-16T11:44:42","date_gmt":"2016-03-16T10:44:42","guid":{"rendered":"http:\/\/www.ume.li\/blog\/?p=436"},"modified":"2016-03-16T11:45:02","modified_gmt":"2016-03-16T10:45:02","slug":"keep-an-x-page-in-memory","status":"publish","type":"post","link":"https:\/\/www.ume.li\/blog\/2016\/03\/16\/keep-an-x-page-in-memory\/","title":{"rendered":"Keep an X-Page in Memory"},"content":{"rendered":"<p>Evreybody knows that starting an XPage for the first time takes some time. Using the Notes.ini parameter for preloading the xpages can become slightly difficult if you have a lot of apps.<\/p>\n<p>My solution is quite simple<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"> \r\n#!\/bin\/bash \r\nUSERNAME=&quot;UserName&quot; \r\nPASSWORD=&quot;Password&quot; \r\nBASEPATH=\/opt\/ibm\/apps \r\nLOGIN_URL=&quot;https:\/\/&#x5B;SERVER_NAME]\/names.nsf?login&quot; \r\nXPAGES_URL=&quot;https:\/\/&#x5B;SERVER_NAME]\/&#x5B;PATH_TO_NSF]\/myXpages.xsp&quot;\r\nif &#x5B; -f $BASEPATH\/last.run ]; then\r\nrm $BASEPATH\/last.run\r\nfi\r\nwget --save-cookies cookies.txt --keep-session-cookies --post-data &quot;Username=$USERNAME&amp;Password=$PASSWORD&quot; --delete-after $LOGIN_URL \r\nwget --load-cookies cookies.txt --delete-after $XPAGES_URL\r\nif &#x5B; -f $BASEPATH\/cookies.txt ] ; then \r\n rm $BASEPATH\/cookies.txt \r\nfi \r\ntouch $BASEPATH\/last.run \r\n<\/pre>\n<p>Place this file on the server and call it through cron on a regular schedule and your xpages should be always loaded.<\/p>\n<p>As always, use on your own risk.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Evreybody knows that starting an XPage for the first time takes some time. Using the Notes.ini parameter for preloading the<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-436","post","type-post","status-publish","format-standard","hentry","category-domino"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts\/436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/comments?post=436"}],"version-history":[{"count":5,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts\/436\/revisions"}],"predecessor-version":[{"id":441,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts\/436\/revisions\/441"}],"wp:attachment":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/media?parent=436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/categories?post=436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/tags?post=436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}