|
|
 |
 |
 |
manilaSuite.rpcHandlers.shortcut.listAll
On bigger Manila websites, listing all messages in a category can "run away with the CPU" and bring the server to its knees. This is one a of a series of changes that alleviates this problem by adding a call to sys.systemTask in the tight loop.
Amended Script
| on listAll (username, password, siteName) |
| |
«Get a struct containing info about all the shortcuts for this site. |
| |
bundle //make sure this person is an editor of this site |
| |
local (adrSite = manilaSuite.rpcUtils.getSiteAddress (siteName)) |
| |
local (adrGlossary = @adrSite^.["#glossary"]) |
| |
if not defined (adrGlossary) |
| |
local (url, adr, adrItem, shortcutsTable) |
| |
new (tableType, @shortcutsTable) |
| |
for adrItem in adrGlossary |
Relative to Frontier version 9.7b10
|