Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启用Redis后,小工具里“目录”的样式显示异常 #562

Closed
Reius opened this issue Dec 23, 2022 · 1 comment
Closed

启用Redis后,小工具里“目录”的样式显示异常 #562

Reius opened this issue Dec 23, 2022 · 1 comment

Comments

@Reius
Copy link

Reius commented Dec 23, 2022

启用插件“Redis Object Cache”后,文章页面中小工具里“目录”的样式显示异常,经过查找,似乎是下边两行代码顺序颠倒导致的。

wp_cache_set(get_the_ID(), $index, 'toc', 360000);
$index = '<div class="widget w-toc">' . "\n" . '<div class="title">文章目录</div>' . "\n" . '<div class="item">' . $index . '</div>' . "\n" . '</div>';

seatonjiang added a commit that referenced this issue Jan 14, 2023
@seatonjiang
Copy link
Owner

seatonjiang commented Jan 14, 2023

发现问题了,下个版本推送修复,更新版本后,刷新redis缓存即可。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants