Hi Guys,
I'm finding some inconsistencies with clearing the cache programmaticly or from the Management Console on my dev server. (Revolution 2.2.6)
After running a cron job that contains this line.
$modx->getCacheManager()->refresh();
my web pages are stuffed up and display all weird. At least I think that line is the cause.
If I clear the cache manually by physically deleting all the files and sub directories in core\cache\ the pages then load correctly again. If I run the command from the management console "Site -> Clear Cache" it has no effect on the broken pages.
My first guess is this is a file permissions problem as I'm manually logged on as root when I clear the files.
When I look a the files and folders there seems to be a mixture of owner and group names between root, wwwroot and www-data
The actual permissions seem to be all over the place.
ps -ef shows that www-data is the user running apache2.
Is there a description somewhere of what the correct permissions should be for all my files and directories under /var/www?
Mine were probably stuffed up when I imported stuff from my production server into development.
Thanks
David