MadHatter Posted May 29, 2014 Share Posted May 29, 2014 Hi, can Pro Cache be installed to the core rather than the site modules directory? I'm hoping to run multiple sites from one core and would like to install Pro Cache once and then forget about it. So far I've found nothing to say it's not possible but I feel the .htaccess edits may be the reason I haven't seen a definite yes to my question. Link to comment Share on other sites More sharing options...
ryan Posted May 29, 2014 Share Posted May 29, 2014 You could install it in /wire/modules/ rather than /site/modules/. However, I don't recommend doing that because it'll get overwritten every time you upgrade the core, which would be a bigger problem than having multiple copies of it. Use symbolic links instead (for /site/modules/ProCache/) and you'll only have to keep one copy of the ProCache files. 1 Link to comment Share on other sites More sharing options...
MadHatter Posted May 30, 2014 Author Share Posted May 30, 2014 Thanks, I think we'll stick with installing it to our base site which we copy for new sites. Out of curiosity, what gets overwritten when ProcessWire is upgraded? The entire Pro Cache module or just the cache and htaccess rules? Link to comment Share on other sites More sharing options...
adrian Posted May 30, 2014 Share Posted May 30, 2014 A PW upgrade overwrites the wire directory, the main index.php and the .htaccess file (although it's rare for these two files to change). A module and it's cache folder (and anything else under site) is untouched. Upgrading to a new version of the Procache module would only overwrite the module files in site/modules/ProCache. The actual cache of pages would be untouched. Link to comment Share on other sites More sharing options...
MadHatter Posted May 31, 2014 Author Share Posted May 31, 2014 How does the upgrade alter the index.php and the .htaccess file on a multisite setup? Will the installer need to be run on each site? I was under the impression that upgrading ProcessWire was as simple as just replacing the wire folder and you're done. Link to comment Share on other sites More sharing options...
adrian Posted May 31, 2014 Share Posted May 31, 2014 I don't know about the multisite side of things, although I don't imagine there is anything different, but here are the full set up upgrade instructions: https://processwire.com/talk/topic/52-how-do-i-upgrade-processwire-to-the-latest-version/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now