To run super large MODx sites with +5000 cached documents:
Quote from: OpenGeek
You can not turn off this part of MODx caching; period. This is not partial page caching we are talking about. MODx would not work without the siteCache.idx.php and in the current architecture, all 250,000 documents would need several lines each in this file, plus all of the PHP source code in the site definition (snippets, plugins, modules) would also be in there. You would have a file so large that it would likely never execute on any PHP installation, and certainly not with any reasonable performance. http://modxcms.com/forums/index.php?topic=18872.0
Some ideas and solutions...
1. Include-file snippet and plugin:
2. Use Custom db tables and manage records with modules such as:
Or other external db managers and 3rd party applications.
Then make use of [ db2form
] or [ eform2db
+ AjaxSearch features: http://modxcms.com/forums/index.php/topic,27316.msg205086.html#msg205086
2b. Styling 3rd party applications:
Don’t forget that your site can be using external forums
, web-shopping systems
and even a
wp blog [ link 1
] [ link 2
] that runs from a subfolder under your domain.
4. Install multiple instances of MODx and have them to connect with each other (at some level):
5. Set all new docs to be uncacheable by default in manager
Use Doc-manager module to change already existing docs, this will still write lines but keep siteCache.idx.php way smaller.
But is this a win? Size versus Speed...
6. Set unpublish dates for news articles! Quote from: OpenGeek
They do not increase the cache file size, but they may have other performance affects since they are additional rows in the database.
Automatic Unpublish Plugin ---> http://modxcms.com/forums/index.php/topic,36558
//Evolution has [#MODX-446] Implement Soushi’s path for large site cache optimizations implemented
http://modxcms.com/forums/index.php/topic,28872.0 to increase some speed!
This is all based upon what I have read in the forums, please correct and suggest more TIPS to this topic! : )
Good compilation mrhaw! Thanks.
Wonderful information. I think this might be sticky material and/or make for a nice future section "Large Site Support"... I think SMF has something similar with their Big Boards Forum area...
Keep the linkage coming!
- Please share experiences about this one!
Quote from: ChuckTrukk
Quid automatically updates an external table with modx content, TVs and document contents.
Nice roundup... been digging around for a while trying to gather it all and you just saved me tons of time!
Can’t wait for revo!
Can you please explain the ~5000 document limit?
I’m searching a long time, and found nothing...