High server processing usage with admin-ajax,php

Posted in: Newspaper
Post count: 8

Is there a way to minimize the amount of calls from the theme to /wp-admin/admin-ajax.php?td_theme_name=Newspaper&v=12.3 ?

We are on shared hosting and it went from the 1% server utilization to over 25%. I have tried Lazy load and have turned that off and still have the same issue. Where else can I look to make this more efficient?

Post count: 35449

Hi,
What you can do are the follow:
1. Make sure that you have the last theme version 12.3.1
2 Use only necessary plugins (for example you can go only on standard templates using tagDiv Standard pack or you can go with cloud templates that can be customized using the tagDiv Composer, you can use both, but this will consume more resources, so you can use only one of them).
3. Use the cache option on your flex blocks – https://forum.tagdiv.com/use-flex-blocks-cache-option/
4. Make sure that all theme requirements are set – https://forum.tagdiv.com/requirements-for-newspaper/
5. Use a database cache.
I hope this will help you!

Post count: 97

I have enabled caching on the flex blocks so it’s fixed on the home page.

The single article pages are still generating admin-ajax calls to count page views. It might be good in a future version to only trigger that call after maybe like 50ms or so after the page has fully loaded?

How could we do this?

Post count: 27

I have the exact same issue

Post count: 35449

Hi,
Indeed, for the moment, no optimization is done on the view count element. It would be good to have an option for it to make the request only later or to be somehow optimized so that it does not consume so many resources.
For the moment, to solve this problem, the simplest “solution” is to delete the view count element from the single post template so that it is no longer used, and to see the number of hits on that post, you can use an analytics code.
Thank you!

Post count: 8

“the simplest “solution” is to delete the view count element from the single post template so that it is no longer used”

Is this hidden? I don’t have one in mine that is easily findable but the posts view in the back end is showing view counts.

Post count: 35449

Hi,
These are the steps that must be followed – https://i.imgur.com/mPz3lBw.jpghttps://i.imgur.com/VUmlq6z.pnghttps://i.imgur.com/GOK06Y0.jpg to remove the view count from backend you’ll need to use this option – https://i.imgur.com/1VyYI2U.png
Thank you!

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.