• 0

Pageless File taking AGES to Serve - all other files are fine...


Question

Posted · Report post

Guys:

 

Close to finishing inital build of our site http://www.thingCHARGER.com  and started speed testing.

 

DMS is generating a file called:

http://www.thingcharger.com/?pageless=1_1378521056

 

And it is astonishingly slow to load and killing our site performance, please see:

http://www.webpagetest.org/result/130907_0Y_0aadff549a9c6a777818044a5863599f/ - you'll see test results of the same page loaded 5 times. Each time all other elements are fast, but the pageless URL takes forever.

 

Please help - urgently need to launch site.

Share this post


Link to post
Share on other sites

18 answers to this question

  • 0

Posted · Report post

The css file is only written if the following are true...

 

1. The uploads folder is read/writable by PHP and PHP is able to create a 'pagelines' folder.

 

2. If the posix tools are not installed (default in PHP some hosts dont install though) then the framework will use the pageless= url format.

    The filter nick supplied, added to a child theme bypasses the posix check and tells the framework to write a file anyway, but ONLY if #1 is true.

 

You said its your own server, how is http/php setup? What users are they running under? Are the folders owned by these users?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Some hosts don't have the proper utilizes to run the LESS compiler. So your LESS file never gets cached (which is why you're seeing it slow).

 

This, shouldn't be like this:

http://www.thingcharger.com/?pageless=1_1378550523

 

That should be something like:

http://www.thingcharger.com/compiled_1378550523.css

 

 

What you need to do is bypass the posix check on the server, with a filter.

 

Add this to a functions.php in your child theme:

add_filter( 'render_css_posix_', '__return_true' );

1 person likes this

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks for the quick reply.

 

The good news is that I control the server so can get my tech to add a utility if required. 

 

Would you recommend adding the utility (if so what is it please?) or just do the bypass?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Ya all you have to do is add that filter above to your child themes functions.php. I have to do the same thing on my host.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Progress!

 

Pages now load faster - thank you Sir!  See:

http://www.webpagetest.org/result/130907_TR_b1f1baeb15d3f5ca1363d3fd610d5f28/

 

However, the file is still named http://www.thingcharger.com/?pageless=1_1378550523 no 'compiled' in the name nor .css, which means that neither W3 Total Cache nor SPEEDILICIOUS are recognizing it as a css file, so don't shard it off to the CDN

 

What is the utility I need to add to my server to have it all work properly please?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Can you enable PL Debug mode please (DMS Toolbar > Global Options > Advanced) and when enabled, reply here informing us please.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

YOu have PHP Magic Quotes gpc : Yes (bad) this needs to be addressed.

 

Also, you have W3 Total Cache installed, all cache plugins aren't simply install, activate and it works. They're more complex than that and need to be configured correctly, to work with your server environment. If cache plugins are not configured correctly, then they can actually increase server load time or worse, break your site.

 

I would try removing W3 Total Cache until your server is configured correctly. I ran a Reverse IP check on your site and found that this is the only domain on that server. If your site is running slow on a server populated by your site alone, then the server is most certainly not configured correctly.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks for the quick reply. I'm not a server admin or coder but am very familiar with the complexities of W3TC (and am actually a co-founder of SPEEDILICIOUS, a company which specialized is web performance). 

 

I don't know if you had a chance to look at the original waterfall I gave above, but you can see that overall performance is decent but with the one single issue of the pageless file.

 

I'll have the guys look at PHP Magic Quotes, in the meantime have disabled W3TC - but if you look at this waterfall you can see that doing so still has the incorrectly named pageless file at item #6 on the waterfall.

http://www.webpagetest.org/result/130908_KH_d57cab94d9979b81a1598f4a0b97f824/1/details/

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I am by no means a server expert, Simon is our server super man, I will ask him to take a look at your issue when he next pops on (most likely Monday).

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks for your help - especially on Sunday. I'm going to get my server guy to look at it as well. He's pretty good and I'm sure we'll have this sorted soon.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Excellent.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Earlier in this thread Nick said: "Some hosts don't have the proper utilizes to run the LESS compiler."

 

I am running a private server and can have it configured any way I want. Please can anyone tell me exactly what the server needs to run the LESS compiler?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

All you have to do is add the filter. That's the solution.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks Nick. We added

 

         add_filter( 'render_css_posix_', '__return_true' );

 

to the functions.php in our child theme immediately you first suggested it and exactly as you specified but that did not resolve the issue

 

Here's the latest performace test: http://www.webpagetest.org/result/130911_VY_47e824504f816a5e99930900c1f10307/5/details/ and if you hover over item #3 you can clearly see that the file is not compiled and named in the correct format.

 

Any other thoughts would be much appreciated.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Simon - thank you so much. I can't get my server wizard onto it until later today but we've often had issues with permissions so that could well be it. Thank you again.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I'd agree, its almost always a file writing issue in this case. 

 

What's going on is the system writes a custom CSS file from all the LESS, if you're system can't write it, it auto generated the file using PHP (which is cached server-side, although not client side)

 

We use WordPress' wider API for this, so if you have a problem with PageLines, you likely have an issue with WordPress as well (and certain plugins, etc..)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now