• Resolved meximuss

    (@meximuss)


    Really love this plugin. Super simple and very effective – makes my site fly!

    Everything was fine up until today when i received an email from my host saying that im about to surpass the data usage on my hosting plan and that i wont be able to visit my site anymore.

    I talked to them and they said that Phastpress is causing a large number of executions – like a VERY high number.

    Im pretty sure this shouldn’t be like that but im unable to understand where is the issue.
    Can you please help me out here? I will disable it temporarily but i want to turn it back on ASAP.

    Also – i use WP rocket but only for the caching, i disabled all the optimization since i wasn’t sure if the two plugins would colide – should i leave it like that or?

    Thank you in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Albert Peschar

    (@kiboit)

    Well, there are two legitimate reasons that PhastPress might cause more PHP scripts to run (I think this is what your host means with executions):

    • Firstly, PhastPress loads images via a PHP script, so that they can be optimized. The optimized image is cached though, and this shouldn’t cause much load on the server. (But it might contribute to the count of ‘executions’.)
    • Secondly, PhastPress also loads all CSS files through a single request per visit, and all JS files in the same way. Similarly as with the images, optimized versions are cached, so this shouldn’t cause trouble.

    It is possible that something isn’t working right on your site, causing more load than usual. In that case, warnings should be visible in the developer console. You can also share your site URL with me, and I’ll have a look.

    Your configuration should be correct: Use WP Rocket only for caching, disable all other optimizations. They are superfluous when you use PhastPress, and some of them conflict. (Especially everything that has to do with JavaScript loading.)

    Thread Starter meximuss

    (@meximuss)

    Hey Albert thank you for your response.
    I disabled Phastpress for a few days and i enabled it again today and the same thing repeats. In the last two hours it surpassed 7.000 account executions (check the screenshot) – https://i.imgur.com/bdiI4o8.png

    Here is the link to my site – MY WEBSITE

    What can we do to fix this? I would really like to keep this plugin running on my site.
    Thank you!

    Plugin Author Albert Peschar

    (@kiboit)

    Phast uses at least one execution per image, plus 2 executions per page (one for all JS, one for all CSS). So that is probably the reason for the high execution count.

    Your hosting provider limits the executions you use to maximize the amount of sites per server, and PhastPress requires some additional executions in order to optimize images.

    It seems you are using SiteGround. In that case, please check that you have the static cache enabled.

    Otherwise I can only suggest that you upgrade your hosting package or move your site to a VPS (UpCloud is very fast) to get rid of resource limitations.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘High number of executions on the server’ is closed to new replies.