We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36613
    • 328 Posts
    Hello I use MODX 2.1.5-pl Revolution at a site of my client. As soon as someone makes any changes to the site will slow down a lot. As I understand it should be for the MODx cache that is continually reset any changes a user? I disabled cache_db but nothing changes. I tried to do the upgrade to 2.2, change the server but the result is the same hang one makes a change the site you slow, 7-10 seconds to load a page. Is there a way to disable this cache hell?
    MODx Evolution has always worked fine.
      • 37550 ☆ A M B ☆
      • 711 Posts
      What environment and server spec are you running the site on? Do you notice any CPU issues at the time of saving ?

      Thanks
        http://www.onesmarthost.co.uk
        UK MODX Hosting with love.
        • 22303 MODX Staff
        • 10,725 Posts
        Sounds like your Resources may contain some Snippets that are taking way too long when not yet cached. Optimizing these is the only obvious solution to the problem, other than making sure your environment is not the cause.
          • 3749
          • 24,544 Posts
          You can often speed things up a lot by replacing output modifiers with snippets and cutting down on the number of TVs. A complex getResources call can also slow things down quite a bit.


          ---------------------------------------------------------------------------------------------------------------
          PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
          MODX info for everyone: http://bobsguides.com/modx.html
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 36613
            • 328 Posts
            You can give me an example for optizmize e code of modx?
              • 3749
              • 24,544 Posts
              Can you post the Resource Content field of one of your slower pages?


              ---------------------------------------------------------------------------------------------------------------
              PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
              MODX info for everyone: http://bobsguides.com/modx.html
                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting
                • 36613
                • 328 Posts
                I don't have a problem with a page but with all site. I suspect I use wayfinder for all menus and top side, could be the problem? that wayfinder is too slow, but do I upgrade?
                  • 19369
                  • 1,098 Posts
                  I think you need to isolate the problem, try to rename or remove the chunks/snippets one by one and test the site speed until you find the culprit.
                    • 3749
                    • 24,544 Posts
                    Quote from: cristianb88 at Feb 24, 2012, 09:13 AM
                    I don't have a problem with a page but with all site. I suspect I use wayfinder for all menus and top side, could be the problem? that wayfinder is too slow, but do I upgrade?

                    Right. That's why I asked you to post *one* of your slower pages. We can't really help you without knowing more about what is on your typical pages.

                    It would also help to see the template.


                    ---------------------------------------------------------------------------------------------------------------
                    PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
                    MODX info for everyone: http://bobsguides.com/modx.html
                      Did I help you? Buy me a beer
                      Get my Book: MODX:The Official Guide
                      MODX info for everyone: http://bobsguides.com/modx.html
                      My MODX Extras
                      Bob's Guides is now hosted at A2 MODX Hosting
                      • 36613
                      • 328 Posts
                      There is the template of my dectail product:

                      [[$header]]
                      <link href="[[!getCssBrandContext? &parent=`[[UltimateParent? &topLevel=`3`]]`]]" type="text/css" media="screen" rel="stylesheet" />
                      
                      <script>
                              $(document).ready(function(){	
                      
                      		       
                      			
                      			$('#corrslider').codaSlider({
                      				dynamicTabs: false
                      			});
                      			
                      			$('#sidemenu').stickyfloat({ duration: 400 });
                      			
                      			$(function(){
                      			  $("#gallery a.smallfotolink").live('click', function() {
                      			  	$("#gallery a.smallfotolink").removeClass('active');
                      				$(this).addClass('active');
                      				$('#gallery .bigfoto').attr('src',$(this).attr('href'));
                                                      $('#gallery a.bigfotolink').attr('href',$(this).attr('href-abs'));
                      				return false;
                      			  });
                      			});
                      
                                              $("a.tab").click(function () {  
                        
                                              // switch all tabs off  
                                              $(".current").removeClass("current");  
                        
                                              // switch this tab on  
                                              $(this).addClass("current");  
                        
                                              // slide all elements with the class 'content' up  
                                              $("#schedeslider-wrapper .panel").slideUp();  
                        
                                              // Now figure out what the 'title' attribute value is and find the element with that id.  Then slide that down.  
                                              var content_show = $(this).attr("title");  
                                              $("#"+content_show).slideDown();  
                        
                          });  
                              });
                              </script>
                      [[!If? &subject=`[[*prettyGalleryAlbum]]` &operator=`!empty` &then=`[[$prettyGalleryCss]]`]]
                      [[!If? &subject=`[[*prettyGalleryAlbum]]` &operator=`!empty` &then=`[[$prettyGalleryIncludeJs]]`]]
                       
                          <link rel="stylesheet" href="assets/templates/default/css/tabbed.css" type="text/css" media="screen" />  
                      [[!If?
                         &subject=`[[getKeyContext]]`
                         &operator=`EQ`
                         &operand=`it`
                         &then=`[[$analytics-it]]`
                      ]]
                      
                      [[!If?
                         &subject=`[[getKeyContext]]`
                         &operator=`EQ`
                         &operand=`web`
                         &then=`[[$analytics]]`
                      ]]
                          </head>
                          <body>
                      [[$top]]
                      
                      <section class="wrapper">
                      
                      [[$certificazioni2]]
                      
                      		
                      			[[$topMenu]]
                      <div id="innermain">
                      				<div class="col1">
                      					<div id="innermenu2" class="innermenu">	
                      
                      [[$left-menu]]
                      </div>
                      
                      				</div>
                      			<div class="col2">
                      					<div id="innerhead2" class="innerhead">
                      						<div id="pathway">[[$pathway]]</div>
                      						<h1>[[*longtitle]]</h1>
                      	
                      [[!If? &subject=`[[*codice]]` &operator=`!empty` &then=`<big>Art. [[*codice]]</big>`]]
                      						
                      					</div>
                      					
                      					<div id="main2" class="main">
                      					<div class="descrizione">
                      							
                      
                      							[[*content]]<br><br>
                      
                      							[[!If? &subject=`[[*componenti]]` &operator=`!empty` &then=`<span class="box1">[[*componenti]]</span>`]]
                      							
                      [[!If? &subject=`[[*certificazione]]` &operator=`!empty` &then=`<span class="box2">[[!getRightContentforLen? &option=`it:certificazione;web:certification`]]: [[*certificazione]]</span>`]]
                      
                      [[!If? &subject=`[[*istruzioni_uso]]` &operator=`!empty` &then=`<a href="[[*uso]]" class="box3" target="_blanck">[[!getRightContentforLen? &option=`it:uso;web:use`]]</a>`]]
                      							
                      						</div>
                      						
                      						<div id="gallery" class="foto">
                      							
                      <div id="big">[[!If? &subject=`[[*prettyGalleryAlbum]]` &operator=`!empty` &then=`[[$singleGallery]]`]]</div>
                      
                      [[!If? &subject=`[[*prettyGalleryAlbum]]` &operator=`!empty` &then=`[[$articoloGallery]]`]]
                      						</div>
                      [[!If? &subject=`[[*coloriAlbum]]` &operator=`empty` &then=`[[!If? &subject=`[[*ingombriAlbum]]` &operator=`!empty` &then=`[[$varIngobriTab]]`]]` &else=`[[!If? &subject=`[[*ingombriAlbum]]` &operator=`!empty` &then=`[[$varColoreIngobriTab]]`]]`]]
                      [[!If? &subject=`[[*ingombriAlbum]]` &operator=`empty` &then=`[[!If? &subject=`[[*coloriAlbum]]` &operator=`!empty` &then=`[[$varColoreTab]]`]]` &else=`[[!If? &subject=`[[*varIngobriTab]]` &operator=`!empty` &then=`[[$varColoreIngobriTab]]`]]`]]
                      			
                      						
                      						<br class="clear"><br>
                      					
                      [[!getRelated?
                        &resource=`current`
                        &fields=`tv.tags:1`
                        &returnTVs=`prettyGalleryAlbum`
                        &tplOuter=`tplOuter_correlatedProducts`
                        &tplRow=`tplRow_correlatedProducts`
                        &noResults=`noResults`
                        &debug=`0`
                      ]]
                      												
                      						<br class="clear"><br>
                      					
                      						<div class="clear"></div>
                      					</div>
                      				</div>
                      				<div class="clear"></div>
                      			</div>
                      		</section>
                      
                      [[!If? &subject=`[[*prettyGalleryAlbum]]` &operator=`!empty` &then=`[[$prettyGalleryJSScripts]]`]]
                      [[$footer]]