\WhitelistGenerator
Synopsis
class WhitelistGenerator
extends Object
implements
Flushable
{
- // methods
- public static void generateWhitelist()
- public static void generateWhitelistRules()
- protected static void array_delete()
- protected static void syncCacheFilesystem()
- protected static array find_old_top_level_pages()
- public static void ensureWhitelistFolderExists()
- public static void clearWhitelist()
- public static void flush()
Hierarchy
Extends
- Object
Implements
- Flushable
Methods
protected
- array_delete()
- find_old_top_level_pages() — Does a database query searching through past URLs of top-level pages, returning any URLs previously used for pages in the SiteTree. This is to ensure that OldPageRedirector rules still apply correctly. That is, to ensure that pages that have been renamed continue to redirect to their current versions, we add the pages' old URLs to the whitelist.
- syncCacheFilesystem() — Sync the list of all top-level routes with the file system whitelist cache