There is an option to warmup cache in System->Maintanance->Warmup cache . I have to warmup cache weekly in my contao site. So that I am thinking to write a scheduler task . I know there is an option for implementing scheduler task
$GLOBALS['TL_CRON']
What will be the risks for implementing this ? Any security risk behind this cache warmup in scheduler ?
In brief :- I need a scheduler for page cache warmup.
- Disabled pages should not be included
- Hidden pages should also be warmed up
There is no way to do what you want to do via a command or cron entry. Things like search reindexing or the frontend page cache warmup of the extension you are using only work via JavaScript AJAX requests - thus they need a client to work. Contao does not yet have the ability to use something like a server side request queue for page cache warming and search indexing.