简体   繁体   English

Joomla 3.0组件缓存问题

[英]Joomla 3.0 component cache issue

I Newly Develop one Joomla Component for Matrimoney. 我最近为Matrimoney开发了一个Joomla组件。 I Installed this Component for one Joomla Site. 我为一个Joomla网站安装了此组件。 When I Perform any Action in this Component Site Part (Ex. I Update Profile Information.) that not Display Immediately. 当我在此组件站点部件中执行任何操作时(例如,我更新配置文件信息。),该操作不会立即显示。 After Cache Clear Performed Action will Display. 缓存清除后,将显示操作。

Caching in Joomla is done for CSS and JS files not for php files. Joomla中的缓存是针对CSS和JS文件而不是针对php文件。 in case the component creates temporary caching of php files by creating new php files then it needs to be changed in the component configuration page. 如果组件通过创建新的php文件创建了php文件的临时缓存,则需要在组件配置页面中进行更改。 It can also be disable in Joomla configuration if you go to Global configuration and disable Joomla caching OR if you directly change $caching =0; 如果您转到“全局”配置并禁用Joomla缓存,或者直接更改$caching =0;也可以在Joomla配置中将其禁用$caching =0; in Joomla configuration.php file. 在Joomla configuration.php文件中。

EDIT: You can also use Cache Cleaner from nonumber which can update cache on saving https://www.regularlabs.com/extensions/cachecleaner#free-vs-pro 编辑:您也可以从nonumber使用缓存清理器,它可以在保存https://www.regularlabs.com/extensions/cachecleaner#free-vs-pro时更新缓存

Install JotCache and explicitly specify in JotCache's settings not to cache your custom made component (disable the System - Cache plugin once you have it installed). 安装JotCache并在JotCache的设置中明确指定不要缓存您自定义的组件(安装后禁用系统-缓存插件)。 That should solve your problem. 那应该解决您的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM