space Baylys
Just practicing to pass the Turing test.
space
space
space
space
Developer for Hire!
space
addedValues Plugin
space

Home

What's new

Bayly.Root

Cornershop Plugin

Career

edutools Root

Enhancements

Interests

linguist Plugin

Manila

Patches

space

mainresponder

manilaData

manilamacros

manilaSuite

space
space

admin

backups

discuss

gems

getCanonicalSiteName

hierarchyPage

hosting

html

mail

member

members

news

plugins

prefs

referer

renderNewsPage

rpcHandlers

rpcUtils

search

sendMail

siteStructure

space
space

buildPathsTable

visitPages

space

staticRendering

storyList

space

system

Patches by Group

Papers

Sales

Sign My Guestbook

User(land) Relations.

Contact Address

Search Baylys

urlchains

space
Join Now
Login
space space space

manilaSuite.siteStructure.visitPages

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 visitPages (adrSite, adrCallback)
  «Visit all the site structure pages in a Manila site. The callback takes the address of the page and the relative path.
 unaltered lines omitted
  «Changes
 unaltered lines omitted
 
  local (adrStructure = @adrSite^.["#hierarchy"].structure [1])
  local (relativePath = "/")
 
  on doTable (adrTable)
 unaltered lines omitted
 
  doTable (adrStructure)
 
  return (true)

Relative to Frontier version 9.7b10