Coder Social home page Coder Social logo

Comments (11)

colinin avatar colinin commented on May 30, 2024

清除下浏览器缓存呢,我这几天忙得没看到

from abp-next-admin.

Xie8Jun avatar Xie8Jun commented on May 30, 2024

咨询下是在哪里初始化权限写入redis缓存,十分感谢

from abp-next-admin.

colinin avatar colinin commented on May 30, 2024

咨询下是在哪里初始化权限写入redis缓存,十分感谢

Volo.Abp.PermissionManagement模块里面,PermissionStore引入了分布式缓存

from abp-next-admin.

colinin avatar colinin commented on May 30, 2024

咨询下是在哪里初始化权限写入redis缓存,十分感谢

因为官方的Volo.Abp.PermissionManagement.PermissionAppService是直接通过数据库查询权限,有很大的性能损耗,所以我自己重写了PermissionAppService通过PermissionStore来查询,优先查询缓存

from abp-next-admin.

Xie8Jun avatar Xie8Jun commented on May 30, 2024

好的谢谢

from abp-next-admin.

colinin avatar colinin commented on May 30, 2024

咨询下是在哪里初始化权限写入redis缓存,十分感谢

因为官方的Volo.Abp.PermissionManagement.PermissionAppService是直接通过数据库查询权限,有很大的性能损耗,所以我自己重写了PermissionAppService通过PermissionStore来查询,优先查询缓存

应该说是重写了PermissionManager

from abp-next-admin.

Xie8Jun avatar Xie8Jun commented on May 30, 2024

因为发布后总是获取不到权限所以想找下哪里初始化权限,感谢

from abp-next-admin.

colinin avatar colinin commented on May 30, 2024

初始化

都在PermissionStore中,最好把多个项目的Redis配置项统一一下,不然的话多个缓存空间不同步,就会出现各模块获取的缓存不一致的问题

from abp-next-admin.

colinin avatar colinin commented on May 30, 2024

前端如果出现权限没有了,可以尝试多刷新两下页面,刷新页面会用token重新请求application-configuration这个api的,如果还是不行就清理浏览器缓存。

如果是token过期了的话,需要找一个授权页面,自动跳转到登录页,这个没法通过刷新页面来处理,因为我没给启动页加权限,abp的模板也没这么干

from abp-next-admin.

Xie8Jun avatar Xie8Jun commented on May 30, 2024

好的我研究下

from abp-next-admin.

colinin avatar colinin commented on May 30, 2024

太久,关闭

from abp-next-admin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.