Improving the efficiency of ModX Revolution ajax requests through enhanced database performance

Currently encountering some challenges with the loading speed of a ModX Revolution (2.2.2-pl) setup. My suspicion is that the issue stems from having hundreds of websites hosted and accessible within the same administrator window, although I have no control over this configuration.

It appears that the ajax calls are struggling - the sidebar takes roughly 10 seconds to fully load, while saving operations take about 15 seconds.

Recently delving into database management, I stumbled upon information regarding indexing. Given that server space is not a major constraint, could there be specific elements in the database that could be indexed to enhance the speed of these calls?

Answer №1

Did you explore the options for javascript and css in the system settings?

The latest versions of modx are constantly improving their speed, so make sure to update to the newest version regularly.

The choice of browser can also impact performance. I personally find Chrome to be the fastest, likely due to its superior javascript engine.

In addition, you can customize the manager to have separate administrative logins for each context or website by creating specific admin users with restricted access. The modx forums offer plenty of guidance on how to do this.

**EDIT***

There are various options in the manager that you can adjust to potentially improve performance: - Enable Compressed CSS - Enabling Compressed JavaScript Libraries - Grouping When Compressing Javascript - Setting Maximum JavaScript Files Compressed - Adjusting Manager JS/CSS Compression Cache Age

Most of these settings should already be optimized by default.

There might be a way to disable the resource browser from refreshing every time you save, but I cannot recall the exact method at the moment.

If your administration access has been limited to specific contexts, you shouldn't be able to view resources outside of those contexts. If you still see other resources, it indicates some level of access beyond what is intended. It appears that your issue lies in the time it takes for the resource browser to refresh, rather than the server processing time, correct?

Answer №2

Which version of Modx Revo are you currently running? The latest updates have brought significant performance enhancements.

Check out this related post

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

"Troubleshooting: Why isn't my Bootstrap alert displaying properly after implementing Ajax

I'm currently working on validating a form using ajax. I have utilized bootstrap's alert alert-danger and alert alert-success classes to enhance the UI, but upon return, it is only displaying as plain HTML without the desired appearance. Can some ...

`Explore SQL data using modal window`

Hey there, I'm in a bit of a pickle with my code. As someone who's just dipping their toes into the world of AJAX and has a vague understanding of PHP, I find myself lost in trying to figure out where things went wrong. My challenge lies in fetc ...

Requesting a resource using the HTTP GET method returned no data

Looking to process the response from an http-request using JavaScript? Check out this straightforward example below. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html x ...

My WordPress loadmore function is not providing any additional posts

Hey everyone, I'm facing a Wordpress issue that I can't seem to resolve. I've checked other posts but haven't found the solution yet. So, I decided to share my code here and seek help. My problem is with trying to load more posts using ...

What is the best way to supply arguments to a generic handler function?

How can I send parameters to a generic handler in Asp.net using JavaScript/jQuery? I am working on a jQuery plugin called ajaxfileupload that utilizes a generic Handler. I need to pass certain arguments from the page using jQuery or JavaScript, such as Dy ...

Only refresh the content when there are updates from the ajax call

Currently, I am populating an HTML table with data retrieved through an AJAX request. The AJAX call is made at regular intervals of X seconds. I am specifically looking for a way to update the table only when the new data fetched from the AJAX call diffe ...

Attempting to locate the precise jQuery selector for a specific element

Let me show you how I've set up my markup: <li class="websites" id="3"> <span class="id">3</span> <span><a href="http://www.google.com"><span class="url">www.google.com</span></a></span> ...

Node.js is having trouble locating the JSON file for Ajax requests

Currently, I've developed a fun little game using the p5.js library and wanted to integrate a Leaderboard feature that pulls data from a JSON file acting as a database to store Usernames and scores. To achieve this, I've utilized a Node.js server ...

verify access with mysql database

Need urgent assistance, sorry if this is a repeated query due to my username! I am facing an issue with my login page. I want it to redirect to my home page when authentication fails by cross-checking input with a MySQL database which should output succes ...

Transferring unique data objects from servlet to jQuery

I am working on a servlet and my objective is to retrieve a customer object from the process request, so that I can access this object in my jQuery code. Can anyone provide guidance on how to achieve this? e.g. myObject.getMethod() Servlet Code: Cust ...

WordPress header causing issues with Document.write()

I have a JavaScript function that utilizes AJAX to retrieve data from a PHP file. Previously, I utilized document.write(data) to display the retrieved content and it worked smoothly on its own. However, upon incorporating the script into WordPress via hea ...

Perform a task if a checkbox is marked or unmarked

Currently, I am working on an HTML form that includes a checkbox asking users if they have a phone number. I am facing an issue where I want to implement two actions: 1. If the user checks the checkbox, a new input element should appear on the same page ...

Advancement in the processing time of a HTTP response that is significantly prolonged

I am seeking a way to return an array of JSON objects (requested by an AJAX call in an AngularJS web application) that represent specific files on the server implemented with node.js. Typically, the result is quickly accessed from a database. However, if ...

What methods can I employ to restrict access to specific controllers within my MVC3 application?

Currently, I have a dedicated controller for handling AJAX requests in my application. This controller sends and receives JSON data when jQuery makes calls to specific URLs. However, some actions within this controller utilize paid services that I want to ...

"Enhance Your Validation Process: Implementing Foundation 6 Custom Abide with

I've been working on creating a unique abide validator that checks if the username already exists. However, most of the information I find online is for foundation 5 and has different structure. Foundation.Abide.defaults.validators['checkUser&ap ...

Connecting HTML POST to MongoDB using NodeJS

I am in the process of developing a blog application using Node, Express, and MongoDB. My goal is to create an HTML form that will allow users to submit new blog posts directly to the database. While I have successfully implemented GET and POST requests us ...

Creating a function that uses setInterval to continuously update the input with a specific value

I am looking to use the setInterval function to continuously update the value of #test1. Additionally, I want the value of #test1 to be cleared and reset to 1 second after the user clicks a button. Example output can be found here: http://jsfiddle.net/eK ...

Transmitting unique characters, such as a caron symbol, via xmlhttp.responseText and encoding them with json_encode

I am struggling to retrieve data from a database that contains a special character (caron) and then pass it through xmlhttp.responseText using json_encode to fill textboxes. However, the textbox linked to the data with the special character (caron) is not ...

When does an xmlHttpRequest object parse serialized XML into a DOM during its lifecycle?

When a JavaScript code with xmlHttpRequest.responseXML() runs, it creates a DOM Document object from the XML-structured HTTP response body. Have you ever wondered at what moment the XML string is turned into the DOM Document by an xmlHttpRequest object? ...

The JSON data in CRM 2011 is displaying as undefined, but the URL is still showing the

I have been struggling with a simple odata query where the call is successful, but I keep getting undefined results. I've tried various methods to inspect the object, but it still shows undefined. What could be causing this issue? UPDATE: After some ...