Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

speed / page load time increases by using getValue #49

Open
4ntz opened this issue Jan 29, 2016 · 4 comments
Open

speed / page load time increases by using getValue #49

4ntz opened this issue Jan 29, 2016 · 4 comments

Comments

@4ntz
Copy link

4ntz commented Jan 29, 2016

I have massive speed problems on my site when using the lingua.getValue snippet inside a pdoResources call, which is placed inside another pdoResources call.

As soon as I use something like this:

[[!lingua.getValue? &id=[[+id]]&field=myTvName]]
[[!lingua.getValue? &id=[[+id]]&field=pagetitle]]

my page loading time increases up to 13 seconds in average. When I delete the lingua.getValue snippet call from my pdoResources call, my page loading time is about 2.5 seconds.

Is there any faster way to get translated resources fields or TV's?

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/30318147-speed-page-load-time-increases-by-using-getvalue?utm_campaign=plugin&utm_content=tracker%2F1919378&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1919378&utm_medium=issues&utm_source=github).
@goldsky
Copy link
Owner

goldsky commented Jan 29, 2016 via email

@4ntz
Copy link
Author

4ntz commented Jan 29, 2016

I have already tried cached and uncached calls. Doesn't make much of a difference..
Yes, one of the calls is a TV. This call causes more speed problems than the pagetitle call.
Input type of my TV is "file", output type is "standard".
Also tried output type "text".

@goldsky
Copy link
Owner

goldsky commented Jan 29, 2016 via email

@4ntz
Copy link
Author

4ntz commented Jan 29, 2016

0.2 seconds

I have now removed everything from my template and put back the pieces one by one and checked everytime for the page load time. Changed every call to uncached and now my page loading time is 7 seconds on first load and on reload its about 2 seconds. I will research now each and every piece of code in my template, maybe there is another problem. I have also quite some output modifiers working on that template. So perhaps it's "just" the addition of all pieces together which causes the long page loading time and not a specific getValue problem inside my pdoResources call.

I will report back my results of testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants