2014-02-28, 08:38:32
nevermind i just reread your post, if you just want to detect new pages.
you can do
And it will still do a file check but it wont have to reload all pages unless the count changed.
A dir scan is still wasteful on every hit, so i would add some custom cookie detection or something so only you trigger it, or use a custom template page as i mentioned before, or if you are using some ftp process, just delete the page cache like carlos says.
you can do
PHP Code:
getPagesXmlValues(true);
And it will still do a file check but it wont have to reload all pages unless the count changed.
A dir scan is still wasteful on every hit, so i would add some custom cookie detection or something so only you trigger it, or use a custom template page as i mentioned before, or if you are using some ftp process, just delete the page cache like carlos says.