Post by panagos » Sun May 01, 2022 10:02 am

Hi guys

New extension released for those of you running Journal 3 on top of OC3.

https://www.opencart.com/index.php?rout ... n_id=43672

Running OC3 in a cluster with Journal 3? Having issues with Journal 3's cache clearing not working predictably in your cluster? Journal 3 relies heavily on file-based caching to ensure that OpenCart sites that have the theme installed perform reasonably well. It also provides the ability to flush the Journal 3 cache from the Journal admin section. This works well when your site is deployed to a single server instance, but does not work well at all when you have a highly available deployment with multiple web servers running behind a load balancer, each with their own file system.

This extension fixes this problem by introducing an innovative solution which means that as soon as the journal3 cache is flushed, all web server instances in the cluster are notified of this and force an invalidation of the cache.

To ensure that the cache is always up to date, the cache is flushed every hour.

If the plugin in installed properly you should see the following log statements appear in your log file:

* When you clear the journal 3 cache:

Code: Select all

2022-04-30 19:23:22 - 1626d8caa4beeb ControllerJournal3Journal3::clear_cache(): Updating Cluster-aware Journal3 cache key [journal3.cache.timestamp.key=626d8caaea4fb1651346602.9597]
* When you try to access the front-end of your site or the admin section:

Code: Select all

2022-04-30 19:23:38 - 1626d8cbac335b ControllerJournal3Startup::index(): START - Invalidating Journal3 cache - Cluster-aware Journal3 Cache Guard [journal3.cache.timestamp.key] not found

2022-04-30 19:23:38 - 1626d8cbac335b ControllerJournal3Startup::index(): END - Cache invalidated - Cluster-aware Journal3 Cache Guard [journal3.cache.timestamp.key] created with value [626d8caaea4fb1651346602.9597]
You can now be confident that if you flush your journal3 cache, your website will render any changes consistently every time.

--
Soteri Panagou
Freelance Developer and Opencart Zealot

http://www.opencart.com/index.php?route ... @gmail.com


New member

Posts

Joined
Sun Oct 25, 2015 3:01 am

Who is online

Users browsing this forum: No registered users and 150 guests