-
- 65 Posts
Is there a possibility to alter the cache directory, i.e. move it out of the webroot, without hacking the core? I did not find a system setting for that, nor a config file where this was listed...
-
- 24,544 Posts
I think there is, but in Revolution, you can (and should) just move the whole core outside the webroot -- the cache will go with it.
http://rtfm.modx.com/display/revolution20/Advanced+Installation#AdvancedInstallation-RenamingorMovingtheCore
-
- 65 Posts
Hey BobRay,
thanks. I see your point and you are completely right. In fact, I have a more complex setup here. But my question does not only apply to this special setting.
Let's think about a setup where your cloud hosting service does not permit disk writes apart from one designated temp directory you're allowed to write to. (This applies to cloudControl for example.)
Another one is where you use an nfs partition with multiple webservers to centralise your cached files (and not have to maintain several cached version of the same site).
In all those cases you have to point your cache to a different directory, no matter where your core is actually situated.
I think a possible solution is to move the directory and then let a symlink point to it.
[ed. note: chrisissorry last edited this post 12 years, 6 months ago.]
-
- 24,544 Posts
I could guess, but moving the cache is a question OpenGeek would have a much better answer for.
If you can't write to any part of the core, though, I suspect that you'd have other troubles. core/packages, for example, has to be writable for Package Manager to work and a number of add-on components write to various directories. And Setup won't run unless core/config/config.inc.php is writable.
-
- 65 Posts
Hey opengeek,
this information was really helpful! Worked like a charm!
Thank you very much!!!