Magento Core Config数据缓存 [英] Magento Core Config Data Cache
问题描述
我的magento前端中存在一些配置数据缓存问题,
I had some configuration data caching issues in my magento frontend that,
- 我无法获得新的运费/获取模板路径提示/等.
-
core_config_data
表正确更新,并且所有后端数据正确显示.
- I cannot get new shipping rates/get template path hints/ etc..
core_config_data
table get updated correctly and All backend data shown correcty.
我尝试了刷新Magento缓存"按钮,清理了<DocumentRoot>/tmp
目录,清理了var/cache
目录
I tried "Flush Magento Cache" button, cleaning <DocumentRoot>/tmp
directory, cleaning var/cache
directory
(此问题已在2周前发现,我一个月前将网站移至了新的VPS)
(This issue is noticed 2 weeks before and I moved the site to new VPS a month before)
任何想法?
推荐答案
检查文件/文件夹权限,不可刷新,不可更改的core_config_cache通常是由于您的var/文件夹树在某处不可写而导致的,所以都将其写入到系统的tmp文件夹.
Check file/folder permissions, the non-flushable, ever magically unchangable core_config_cache is usually the result of having your var/ folder tree unwritable somewhere so it all gets written to the system tmp folder.
由于后端按钮仅刷新var/cache/中的内容,因此它将永远不会触及/tmp/*中的任何内容,并且您最终会遇到这种神秘的特征,即该特征会在admin中更改,但该站点将无法读取配置.上周,我刚进行了一次升级,更改了权限.
Since the backend button only flushes contents in var/cache/, it will never touch anything in /tmp/* and you end up with this mysterious trait where it will change in the admin but the site will not read the config. I just had it happen last week on an upgrade where the permissions got changed.
这篇关于Magento Core Config数据缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!