{"id":3954,"date":"2018-06-07T06:59:24","date_gmt":"2018-06-07T06:59:24","guid":{"rendered":"https:\/\/demos.welaunch.io\/woocommerce-pdf-catalog\/?post_type=faq&#038;p=331"},"modified":"2023-11-15T11:55:32","modified_gmt":"2023-11-15T10:55:32","slug":"generating-large-pdf-catalogs","status":"publish","type":"faq","link":"https:\/\/www.welaunch.io\/en\/knowledge-base\/faq\/generating-large-pdf-catalogs\/","title":{"rendered":"Generating Large PDF Catalogs"},"content":{"rendered":"<p><strong>If you have many products like above 500 or many products in multiple categories, the full catalog may stop rendering and gives you a 500 \/ 504 error. However the category catalog still works (of course dependent on the amount of products inside a category). <\/strong><\/p>\n<p>So if you want to create the full catalog with many products, you need full server access and your server should have a good configuration. Do not try it on a 512mb RAM cloud server. But before optimizing your server you can try changing our plugin configuration.<\/p>\n<p><strong>Plugin Configuration:<\/strong><\/p>\n<ol>\n<li>Disable Variations (looping through all variations is a huge task)<\/li>\n<li>Disable QR Codes (Generation &amp; Rendering takes time)<\/li>\n<li>Disable product Gallery Images OR set a smaller Gallery image size type (e.g. thumbnail)<\/li>\n<li>Set small Product Images &amp; Category Image Size Types (e.g. shop_catalog image size)<\/li>\n<li>Turn on Performance Options\n<ol>\n<li>Use Images Locally<\/li>\n<li>Enable Caching<\/li>\n<li>plus the rest<\/li>\n<\/ol>\n<\/li>\n<li>Decrease Cover Image sizes<\/li>\n<\/ol>\n<p><strong>Server Optimization:<\/strong><\/p>\n<ol>\n<li>Switch to <strong>PHP8<\/strong>\u00a0if you haven&#8217;t yet<\/li>\n<li>Increase <strong>memory_limit<\/strong> in php.ini<br \/>(if you see errors like\u00a0<em>Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 54 bytes<\/em>)<\/li>\n<li>Increase <strong>max_execution_time<\/strong> in php.ini<br \/>(if you see errors like\u00a0<em>PHP Fatal error: Maximum execution time of 30 seconds exceeded in ..)<\/em><\/li>\n<li>Increase\u00a0fastcgi_read_timeout in nginx \/ apache<br \/>(if you get a 504 error)<\/li>\n<li>Look into your error logs &#8230;<\/li>\n<\/ol>\n<p>Example:<\/p>\n<pre class=\"p1\"><span class=\"s1\">nginx:\nfastcgi_read_timeout 600\n\nphp:\nmax_execution_time 600\nmemory_limit 512MB<\/span><\/pre>\n<p>\u00a0<\/p>\n<p>With this config we were able to create a catalog with more than 500 pages. 370 products assigned to multiple categories.<\/p>\n","protected":false},"author":1,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","product_cat":[],"class_list":["post-3954","faq","type-faq","status-publish","hentry","faq_topics-pdf-catalog-faq"],"_links":{"self":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/3954","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/types\/faq"}],"author":[{"embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/comments?post=3954"}],"version-history":[{"count":2,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/3954\/revisions"}],"predecessor-version":[{"id":16624,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/3954\/revisions\/16624"}],"wp:attachment":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/media?parent=3954"}],"wp:term":[{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/product_cat?post=3954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}