January 24, 2012 at 4:04 am #5360
I have a 260 page pdf file that takes a little over thirty seconds to stamp. This means that a customer has to wait more than thirty seconds after making payment before they get redirected back to my site.
I do understand that 260 pages is a lot, but is there any way to speed up stamping?
Maybe by tweaking some code, using different options or different hosting?
I’m using shared hosting with bluehost, btw.
Thanks.January 24, 2012 at 5:25 am #41123
If you have a good hosting it will take less than 3 seconds to stamp 260 pages. So that option is always open for you.
Is the “Enable PDF File Encryption” checkbox checked in your PDF stamper settings? The encryption is CPU intensive so I would recommend turning that off if your are on a shared hosting.
You can also try enabling caching in the PDF stamper. Open the “wp_pdf_stamp.php” file and find the following line of code:
Once you find it change it to the following to enable caching:
define('WP_PDF_STAMP_USE_CACHE', "1");January 24, 2012 at 11:15 pm #41124
I didn’t have pdf file encryption activated and enabling caching didn’t help.
It actually took a couple minutes to stamp the file today.
I’m pretty sure this is a Bluehost issue (i.e., shared servers + peak traffic hours). I logged into my cpanel and discovered they are throttling my cpu.
Did a little research and apparently they have a really bad reputation for this. There is a thread on warrior forum that is pages long. It’s full of people that have left Bluehost…
1. What type of hosting would you recommend so that I can stamp a 260 page pdf in 3 seconds? In an article on your main site I believe in motion hosting was the top pick?
2. If Bluehost allows me to upgrade what specific features affect pdf stamping speed? I used to think bandwidth was the big one, but now I realize there is a lot more to it (i.e., cpu, ram, etc)
Thanks for your help here.January 25, 2012 at 4:26 am #41125
This article will summarize my recommendations:
We have a dedicated server from InMotion which can do stuff pretty quick but I don’t think you need a dedicated server just yet. A lot of these hosting companies offer VPS (virtual private server) which will probably do the job as long as there is enough CPU and RAM resource available for your account. You don’t seem to be running out of RAM memory so you mainly need to focus on having the CPU power.January 26, 2012 at 8:49 pm #41126
How many CPU GHZ would I need to stamp 260 pages within 5s?
Want to make sure I get the exact plan I need before migrating everything.January 27, 2012 at 4:53 am #41127
Thats hard to say without testing it. What are your choices?January 29, 2012 at 3:17 am #41128
Well, for now I am going to reduce the CPU load of my website through various methods.
If that doesn’t work I’ll report back here with the exact VPS plans I am looking at.
Thanks.February 10, 2012 at 2:48 am #41129vfontjrMember
My book has over 300 pages and it takes just 3-4 seconds to stamp it. It’s very fast.February 20, 2012 at 6:25 pm #41130
Changed my hosting to a better one and now everything is working fine.April 17, 2014 at 10:37 am #41131mbaseParticipant
@guajolote — This was a while ago, but given the recent problems with hosters, can I ask which server did you change to? And was it shared or dedicated?April 17, 2014 at 3:33 pm #41132wzpModerator
@mbase — You might be waiting a long time, as this customer hasn’t had any forum activity in over 2 years. And trying to Google his handle “guajolote” won’t help you find him, as “guajolote” is the Spanish word for “turkey.”April 17, 2014 at 4:56 pm #41133mbaseParticipant
Thanks for the tipoff! I’m using Hostgator, who as you may know, experienced a meltdown yesterday. I was looking into changing servers, thinking about InMotion, and just wanted to get some feedback before making the big switch.
Although this was a little off the subject, but I had also experienced some problems with stamping, and wanted to see if a change in servers would help this as well.April 18, 2014 at 2:56 am #41134
Hostgator is a decent hosting provider in my opinion. The hosting package you use from a provider can have a big impact on performance and power. For example: There is going to be a lot of difference (in terms of power) between a $5 hosting package and a $20 hosting package.
We have a WordPress hosting recommendation article here that maybe worth reading:
- You must be logged in to reply to this topic.