Automatic Platform Optimization caches other apps/files also

After we started using Automatic Platform Optimization (APO) we noticed that it indeed improves the perfomance/speed of our website. Great! The website was having issues because of a few items on the frontpage like Trustpilot widget slowing it down a lot. That has now improved, we went from a load time of >2.5~3s <1.2~1.4s. That’s a huge improvement.

However we did noticed there’s an influence on some other stuff that is not that cool. For example, on the same domain we host ninja-invoice (in a folder like and another application we wrote ourselves.

After activating Automatic Platform Optimization we, after some time, could no longer login to these programs unless we bypassed it using a different domain also pointing to the same website or clearing the cache at Cloudflare.

I can understand how this was caused. APO, at the moment, doesn’t “see” that /ninjainvoice/* doesn’t belong to the wordpress installation. It just caches everyting on a domain.

So we exluded it using the pagerules. Hopefully that will work well. However, this should be adressed I think - perhaps in the instructions somewhere or, if possible, in the APO itself. Since if people can’t discover what is going on, they will stop using it. And that would be a shame. Since it’s a great performance booster for sure!

Thank you for your Post.
I will just tag @yevgen here to let him know.

But about the way you have implemented ninjainvoice:
I never go with “subdirectory” installations. I always set up different application on different subdomains like:


Then you can differenciate and use different settings (on DNS and Server level) more easy also this then would not conflict with APO.
But I can understand you wanting to be able to exclude directories from APO.

Feedback if your solution with PageRules works would be appreciated


Normally it would be the best to use a subdomain, agree. Normally I use a different account/domain for this. However we’re having some issues with legacy software and stuff like that and well, … before you know you choose the easy way out eh? :sweat_smile:

Using Page Rules in case of mixed subdirectory installations is the right way to go, glad you figured it out.

However, this should be adressed I think - perhaps in the instructions somewhere or, if possible, in the APO itself.

That’s a challenge obviously, we are open to suggestions.

1 Like

Thanks for getting back so fast on this.

I’d suggest putting it somewhere in the installation instructions. Would be sufficient as a ‘work-around’. But perhaps most people won’t even notice it since they probably won’t run more applications.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.