Post by mohjab » Sat Mar 06, 2021 1:01 am

Hi,

I'm getting confused by the following two caching folders:
  • /storage/modification
  • /system/storage/modification
What's the difference between them?

Newbie

Posts

Joined
Sat Mar 06, 2021 12:54 am

Post by Johnathan » Sat Mar 06, 2021 1:12 am

OpenCart 2.x versions used /system/storage/ but OpenCart 3.0 asks you to move it somewhere else, so some people put it into the OpenCart root (and thus it's a /storage/ directory). You can tell which one your site is using if you look in the /config.php and /admin/config.php files --- the DIR_STORAGE constant will show the filepath to the one being used. The other one can be deleted, it's not used for anything.

One other note: you'll want to make sure those DIR_STORAGE constants are the same. If they're different then ocMod files will not work on your site, because when you refresh the ocMod cache it will put the files into one location, while the front-end will load them from a different location.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by paulfeakins » Mon Mar 08, 2021 7:40 pm

mohjab wrote:
Sat Mar 06, 2021 1:01 am
I'm getting confused by the following two caching folders:
  • /storage/modification
  • /system/storage/modification
What's the difference between them?
Well the answer depends on why you're asking and whether you're a developer or a user?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by mohjab » Tue Mar 09, 2021 3:52 pm

paulfeakins wrote:
Mon Mar 08, 2021 7:40 pm
mohjab wrote:
Sat Mar 06, 2021 1:01 am
I'm getting confused by the following two caching folders:
  • /storage/modification
  • /system/storage/modification
What's the difference between them?
Well the answer depends on why you're asking and whether you're a developer or a user?
A developer who's trying to understand OpenCart.

Newbie

Posts

Joined
Sat Mar 06, 2021 12:54 am

Post by sw!tch » Tue Mar 09, 2021 4:30 pm

/storage/modification
^ This is where ocmod cache files are written to. Basically its a clone of the original file with modifications (ocmod) applied to it.

If your looking at getting into Opencart development also reference the wiki.
Ocmod:
https://github.com/opencart/opencart/wi ... ion-System
Events:
https://github.com/opencart/opencart/wiki/Events-System

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by sw!tch » Tue Mar 09, 2021 4:35 pm

mohjab wrote:
Sat Mar 06, 2021 1:01 am
Hi,

I'm getting confused by the following two caching folders:
  • /storage/modification
  • /system/storage/modification
What's the difference between them?
system/storage/modification is default on install.

When you first install opencart it will prompt you to move the storage folder outside of the public directory. Your modification dir then becomes storage/modification.

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm
Who is online

Users browsing this forum: Shiftcom, SohBH and 415 guests