To run super large MODx sites with +5000 cached documents:
0963/Evo
Quote from: OpenGeekYou 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:
http://modxcms.com/forums/index.php?topic=36317.0
http://modxcms.com/forums/index.php?topic=32493.0
http://modxcms.com/forums/index.php/topic,18872.msg189855.html#msg189855
2. Use Custom db tables and manage records with modules such as:
http://www.sottwell.com/create-module.html
http://modxcms.com/forums/index.php/topic,32720.0.html
http://modxcms.com/forums/index.php?topic=23176.0
Or other external db managers and 3rd party applications.
Then make use of [
db2form ] or [
eform2db ]:
http://modxcms.com/forums/index.php/topic,31363.msg190208.html#msg190208
+
http://wiki.modxcms.com/index.php/DB_query_and_Placeholders
+ 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.
3. HACK!
http://modxcms.com/forums/index.php/topic,28110.0.html
4. Install multiple instances of MODx and have them to connect with each other (at some level):
http://wiki.modxcms.com/index.php/API:DBAPI:connect
http://wiki.modxcms.com/index.php/Access_another_database_from_MODx
http://modxcms.com/forums/index.php/topic,1618.msg10957.html#msg10957
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: OpenGeekThey 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!
Revolution
http://modxcms.com/forums/index.php/topic,42153.msg338761.html#msg338761
----------------
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.
cheers/k
-
☆ A M B ☆
- 2,213 Posts
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!
AMDbuilder
http://www.modxcms.com/forums/index.php?topic=21516
- Please share experiences about this one!
http://www.modxcms.com/forums/index.php?topic=31666
Quote from: ChuckTrukkQuid 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...
Thx