We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33997
    • 150 Posts
    I’ve been using Evo and am thinking about diving into a Revo site. Are there any versions of Revo that are totally stable? Maybe not as stable as Evo 1.0.5, but very close? I keep seeing posts in the forums about bugs and issues and other things, and I am wondering if it is worth it for me at this point - doing the site in Evo should tide me over for a long time, being that getting the site to the point where the cache is handling 5000 pages should take quite a while...(i.e. there may be more than 5000 pages, but many will only need to be served for so long, at which point the cache can be cleared and the pages won’t be used).
      "Great spirits have always encountered violent opposition from mediocre minds." -Albert Einstein
    • The problem with 5000+ resources is not in the page caching system, but in the siteCacheIdx cache which maintains three different arrays of the resources, their aliases, and their relationships. These arrays get huge, until they become unwieldy and the cache file becomes huge. The Resource Tree also becomes problematic, but that happens in Revo’s Manager as well.

      I would be inclined to use a plugin or a module to move "archived" resources either to another custom table or to files, and use a custom snippet to display them as required.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 33997
        • 150 Posts
        This archiving, are you suggesting this for Revo or for Evo or both? And when you say a custom snippet to display them as required, what do you mean?
          "Great spirits have always encountered violent opposition from mediocre minds." -Albert Einstein
        • Being lazy, I would just make a copy of the site_content table called news_archive or something, then make a modified version of Ditto named NewsArchives and just change the table name it fetched from. This way you’d have all the advantages of the database (sorting, searching, filtering) but these would be out of the cache and the resource tree. Nobody is going to be editing these, so they certainly don’t need to be in the Tree. A plugin, using onDocFormSave, for example, could check for any resources in the site_content table older than x number of days (or hours or months or whatever) and copy them to the news_archive table and delete them from the site_content table. The modified NewsArchives snippet would behave just as Ditto does for display of the archives, so no problems there. I think Reflect could easily be modified to work with it as well.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 33997
            • 150 Posts
            Very interesting. That sounds like a great system. And to pull them out of the news_archive table and make them active again could be done manually, via phpmyadmin, right? It would happen rarely, if ever, but it could work?
              "Great spirits have always encountered violent opposition from mediocre minds." -Albert Einstein
            • In Revolution, you could also do archiving by simply moving Resources to a Context setup specifically for "archived" Resources.
              • I knew Revo would have a better (or just different?) solution wink
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org