I just enabled the [url=http://doc.silverstripe.com/doku.php?id=staticpublisher]static publisher[/url]. It's a fantastic extension and it was really easy to set it up. I still have a few questions about it, though.
- - When I create a new page in the CMS I can see that the cached page is created in the /cache/ folder and I can see it in the frontend. The problem here is that other pages are not updated and the new page does not appear in the navigation of other pages. How can I rebuild the cache for all pages when I click on 'save and publish'?
When I run /dev/buildcache?flush=1 it works and I could set up a cron job to do this once in a while, but I think in my case a simpler solution would be to just initiate the cache rebuild of all pages when I publish the page. How can I do that?
- - When I create a new page using the [url=http://doc.silverstripe.com/doku.php?id=staticpublisher#cache_control]php cache control[/url] method the page is also added to /cache/ but appears blank in the frontend until I run /dev/buildcache?flush=1 Again, it would help to initiate the buildcache script when publishing.
- - similar (and regardless of cache control) I would like to rebuild the cache of a single page when a user posts a comment on a page. So the moment a user clicks the post button the page should be re-cached on the server.
- - I also notice that the home page (index.html/index.php) does not come from the cache (but the [url=http://open.silverstripe.com/browser/modules/cms/trunk/code/staticpublisher/htaccess_example_rsyncsingleserver].htaccess file[/url] looks OK and the index.html/index.php file is in the /cache/ directory). The response header always shows that it's PHP and it takes about five times longer to load the page - about 0.06 seconds for cached pages and about 0.3 seconds for the dynamic home page. And yes, index.php can be used as DirectoryIndex. Any ideas why this page is not cached?
I would highly appreciate any insights, hints or comments on this.