-
Notifications
You must be signed in to change notification settings - Fork 11
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
Comments
try to cache it `[[lingua.getValue?...`
If it's a TV, it tries to render the TV output as well.
|
I have already tried cached and uncached calls. Doesn't make much of a difference.. |
Can you confirm back:
1. Use BaseTemplate
2. **Only** put lingua.getValue snippet in content
3. Add [^t^].
How long is the time?
|
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. |
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).The text was updated successfully, but these errors were encountered: