marghoobsuleman / hashtagcms

HashtagCms, Use it as Headless CMS or Bundled, API enabled, Admin Panel, multisite, multi-tenant, multiplatform, multilingual with endless possibilities. The Most powerful, fast, user-friendly and secured platform. Made with PHP Laravel Framework.
https://www.hashtagcms.org
MIT License
18 stars 4 forks source link

[Feature request] Dashboard--->[#CMS]: php artisan commands to force update resources in backend and to clear caches #27

Closed DeRaja closed 2 years ago

DeRaja commented 2 years ago

Hello Marghoob,

Problem:

Same php installation with its database works on one domain but does not work on a different domain. What worked did not work any more.

The problem of caching with Vue.js scripts could happen on every clients computer of an administrator. It applies to assets in backend.

Solution:

Add a function in Dashboard nav_topbar to manually update BE_RESOURCE_VERSION with a button. This will force load all assets on clients workstation. When adding this functionality, it could be helpful to have a couple of functions, for e.g.:

Dashboard--->[#CMS]: php artisan optimize:clear Dashboard--->[#CMS]: php artisan cache:clear Dashboard--->[#CMS]: php artisan view:clear

Earlier, I had problems regarding this issue here: https://github.com/marghoobsuleman/hashtagcms/issues/21. Your solution of env('BE_RESOURCE_VERSION', '011520221539')] was correct. I had different results because several situations combined gave different results.