admin-ajax

Posted in: Newspaper
Post count: 22

Hi,

Our website was super slow due to the theme making a http post request for every visit to admin-ajax.php. Also, for every visit the PHP script Ajax-handler.php is being called resulting in unnecessary stress on the server.

Is this something I can deactivate?

Thanks!

Post count: 35449

Hi,
The theme uses admin-ajax to handle the request to the database. Now each block from a page will make it’s on requets, so what you can do is to reduce the number of blocks on your pages.
Another option that can help is the flex blocks teh cache option https://forum.tagdiv.com/use-flex-blocks-cache-option/. This option will cache those block requests and deliver them as long as the cache is set (is recommended that the cache expiration time to be longer if you create only a few articles per day)
Thank you!

Post count: 22

Hi,

Is that block cache new? Dont see it in settings.

Post count: 35449

Hi,
The option is only on flex blocks. This option was added in Newsapper 12.3, and the current theme version is 12.7.4

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